Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Regexp: Private IP Addresses

by markkawika (Monk)
on Aug 26, 2009 at 21:20 UTC ( [id://791463]=note: print w/replies, xml ) Need Help??


in reply to Re: Regexp: Private IP Addresses
in thread Regexp: Private IP Addresses

Not to detract from your code, but that in effect is exactly what Net::IP::Match::Regexp is doing.

Replies are listed 'Best First'.
Re^3: Regexp: Private IP Addresses
by ikegami (Patriarch) on Aug 26, 2009 at 21:49 UTC

    No. There are similarities between all the solutions provided in this discussion (including between mine and that module's), but the module's solution is far from being exactly the same as any of mine.

    According to the docs, it uses the binary representation of the address (a long string of zeros and ones), whereas all of my solutions work with the address as a native number (C long). That makes some of them byte-oriented and some of them mask-oriented, but none are bit-oriented like that module.

    Mind you, any of the solutions in this discussion could be given the same interface as that module.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://791463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-09-17 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.