Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Net:Addr

by fokat (Deacon)
on Dec 05, 2004 at 01:52 UTC ( #412446=note: print w/replies, xml ) Need Help??


in reply to Net:Addr

Hi there:

Of course I am biased, but how about... (untested)

use strict; use warnings; use vars qw($is_this_an_IP_address); use NetAddr::IP; my $ip = new NetAddr::IP $is_this_an_IP_address; if ($ip) { # This is a valid IP address, or something an IP address can be deri +ved # from } else { # This is not an IP address }

Best regards

-lem, but some call me fokat

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412446]
help
Chatterbox?
[Eily]: hello perlmonks :)
[Corion]: choroba: I think it's great that your kids (have to) perform in public - that makes you appreciate any kind of show much better IMO

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-12-12 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (327 votes). Check out past polls.

    Notices?