| net :: iPaddress :: Util. ¹öÀü - ºÒ°¡Áö·Ð IP ÁÖ¼Ò Ç¥Çö |
Áö±Ý ´Ù¿î·Îµå |
net :: iPaddress :: Util. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Paul Bennett
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~pwbennett/
net :: iPaddress :: Util. ű×
net :: iPaddress :: Util. ¼³¸í
NET :: IPADDRESS :: INUTLÀº IPv4 ¶Ç´Â IPv6ÀÌ IPv4 ¶Ç´Â IPv6 ¿©ºÎ¿¡ °ü°è¾øÀÌ IP ÁÖ¼Ò¸¦ ½±°Ô ó¸® ÇÒ ¼ö ÀÖÀ¸¸ç Á¶À۵Ǵ µ¥ÀÌÅÍÀÇ ¼Ò½º (¹× ´ë»ó)¿¡ °ü°è¾øÀÌ IP ÁÖ¼Ò¸¦ ½±°Ô ó¸® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. module net :: ipaddress :: utils´Â °³º° ÁÖ¼Ò¸¦ »ç¿ëÇϱâÀ§ÇÑ °ÍÀÔ´Ï´Ù. net :: ipaddress :: util :: ¹üÀ§´Â ÁÖ¼ÒÀÇ °³º° ¹üÀ§¸¦ »ç¿ëÇϱâÀ§ÇÑ °ÍÀÔ´Ï´Ù. ±×¸®°í net :: ipaddress :: util :: collectionÀº ÁÖ¼Ò ¹× / ¶Ç´Â rangesÀÇ Ä÷º¼Ç. Synopsis´Â net :: ipaddress :: util try => gmp, pari ', qw (IP); ³» $ IPv4 = IP ( '192.168.0.1'); MY $ IPv46 = IP ( ':: FFFF : 192.168.0.1'); MY $ IPv6 = IP ( 'FE80 :: 1234 : 5678 : 90AB'); "$ IPV4 \ N"À» ÀμâÇϽʽÿÀ; # 192.168.0.1 "$ IPv46 \ N"Àμâ; # 192.168.0.1 Àμâ "$ IPv6 \ N"; # FE80 :: 1234 : 5678 : 90AB Àμâ $ IPv4-> normal_form (). "\N"; # 000000000000000000FFFFC0A80001 $ IPv46-> normal_form ()À» ÀμâÇϽʽÿÀ. "\N"; # 00000000000000000000FFFC0A80001 $ IPv6-> normal_form ()À» ÀμâÇϽʽÿÀ. "\N"; # Fe80000000000000000012345678909 (My $ IP = IP ( '192.168.0.0'); $ IP <= IP ( '192.168.0.255'); $ IP ++) {$ IP} Á¦Ç°ÀÇ È¨ÆäÀÌÁö
net :: iPaddress :: Util. °ü·Ã ¼ÒÇÁÆ®¿þ¾î