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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Has this been written before
by tirwhan (Abbot) on Dec 08, 2005 at 20:42 UTC

    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
      Thanks....works great.