in reply to Re^2: Has this been written before
in thread Has this been written before

Hmm, did you look at the documentation (on the website I linked to)? PM isn't a place to come to if you want someone else to write you scripts. We're here to help, not do your work for you.

That being said, this will do what you say you want:

perl -MNet::Netmask -e'print "$_\n" for(Net::Netmask->new("10.1.1.0/20 +")->enumerate())'

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan

Replies are listed 'Best First'.
Re^4: Has this been written before
by mrbbq (Sexton) on Dec 08, 2005 at 21:30 UTC
    Thanks....works great.