Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: algorithm for network address enumeration

by Jaap (Curate)
on Feb 11, 2005 at 10:32 UTC ( [id://430041]=note: print w/replies, xml ) Need Help??


in reply to Enumerating IP Addresses in a Subnet
in thread algorithm for network address enumeration

What does this do?
print(format_ipv4, $/) for ($first+1 .. $broadcast-1);
I would expect $_ there.

Edit: never mind. i get it:
print format_ip4($_); print $/;

Replies are listed 'Best First'.
Re^4: algorithm for network address enumeration
by ikegami (Patriarch) on Feb 11, 2005 at 15:55 UTC
    I wrote format_ipv4 to use $_ if no arguments are supplied (like length, split and a number of other builtins do), so
    print(format_ipv4, $/)
    is the same as
    print(format_ipv4($_), $/)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found