Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Managing your IP space with Perl

by terryfunk (Sexton)
on Nov 18, 2004 at 01:06 UTC ( [id://408699]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Managing your IP space with Perl

Nice tutorial...however it would be nice to add a routine that would also sort the ip addresses.

Replies are listed 'Best First'.
Re^2: Managing your IP space with Perl
by fokat (Deacon) on Nov 21, 2004 at 23:43 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://408699]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.