in reply to What's the bug ?
You need to create a Net::IP object. Try this
Update: Added IP in constructor. Directly from CPAN.
PS. using strict would have prevented this error.#!/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());
Update: Added IP in constructor. Directly from CPAN.
- Tom
|
---|
In Section
Seekers of Perl Wisdom