Nice tutorial...however it would be nice to add a routine that would also sort the ip addresses.
Well, actually NetAddr::IP objects behave nicely when sorted, so this...
sort @list_of_netaddr_ip_objects;
...Will do as expected. The trick is that the comparison operators used by sort and others, are overloaded too. The overload was done because I needed to sort addresses :)
Best regards
-lem, but some call me fokat
In reply to Re^2: Managing your IP space with Perl
by fokat
in thread Managing your IP space with Perl
by fokat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |