![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: What's the bug ?by tomhukins (Curate) |
on Jul 08, 2004 at 00:24 UTC ( #372632=note: print w/replies, xml ) | Need Help?? |
Imagine you wrote the following:
$message is undefined, so print will output nothing. If you use the strict pragma, it will complain alert you that you forgot to define $message. The same thing is happening in your program. You try to do something with $ip before you have declared it. In this case, you need to instantiate $ip as a Net::IP object as suggested by tcf22.
In Section
Seekers of Perl Wisdom
|
|