in reply to Returning arrays from subroutines

Also if you're working with netmasks (which it looks like you might be), you might find all that you're trying to do has been been done - look into Net::IP and NetAddr::IP.

Update: didn't see that 'new to subroutines' bit at first. Carry on, carry on..

Replies are listed 'Best First'.
Re^2: Returning arrays from subroutines
by aukjan (Friar) on Jun 17, 2005 at 06:59 UTC
    Also Net::Netmask might do the trick...

    .:| If it can't be fixed .. Don't break it |:.