++ BrowserUK for thinking like i do. :) how about this little gem from Net::Netmask...
sort_by_ip_address This function is included in "Net::Netmask"
simply because there doesn't seem to be a bet-
ter place to put it on CPAN. It turns out
that there is one method for sorting dotted-
quads ("a.b.c.d") that is faster than all the
rest. This is that way. Use it as
"sort_by_ip_address(@list_of_ips)".
sub sort_by_ip_address { return sort { pack("C4",split(/\./,$a)) cmp pack("C4",split(/\./,$ +b)) } @_ }
which has to be about the worst possible.
In reply to Re: Re: Re3: Anyone use "xor" in conditionals?
by zengargoyle
in thread Anyone use "xor" in conditionals?
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |