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

Re: Re^3: ip range for config files

by smackdab (Pilgrim)
on Nov 05, 2003 at 07:14 UTC ( [id://304646]=note: print w/replies, xml ) Need Help??


in reply to Re^3: ip range for config files
in thread ip range for config files

You know, I'll bet everyone using these modules wants the CIDR format...actually I don't. I want an array of individual IP addresses back from a CIDR format (or a IP-Range format)

I want to give the user an option to specify a range of IP addresses in their favorite format and then get the array back...

I am very likely very CONFUSED...

Say I have a config file of hosts/devices to ping...

# Ping me list
host1; 192.168.0.1-192.168.0.10; 10.0.0.0/8; host2

I am looking for a proper format to allow. right now, you have to list 1 IP or hostname on EACH line ;-(

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-06-20 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.