Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Module for working with IP Addresses and Ranges

by ikegami (Pope)
on Oct 22, 2010 at 15:25 UTC ( #866824=note: print w/replies, xml ) Need Help??


in reply to Re: Module for working with IP Addresses and Ranges
in thread Module for working with IP Addresses and Ranges

By the way,
my @bytes; while ($address =~ /(\d+)/g) { push @bytes,$1 }
can be written as
my @bytes = $address =~ /(\d+)/g;
so you end up with
unpack('N', pack('C*', $address =~ /(\d+)/g))

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://866824]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-06-18 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (110 votes). Check out past polls.

    Notices?