Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: What's the bug ?

by tcf22 (Priest)
on Jul 07, 2004 at 20:52 UTC ( #372542=note: print w/replies, xml ) Need Help??


in reply to What's the bug ?

You need to create a Net::IP object. Try this
#!/usr/local/bin/perl use strict; use Net::IP; my $ip = new Net::IP('193.0.1/24') or die (Net::IP::Error()); print ("Mask : ", $ip->mask());
PS. using strict would have prevented this error.

Update: Added IP in constructor. Directly from CPAN.

- Tom

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2021-01-26 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?