Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to What's the bug ?

Imagine you wrote the following:

#!/usr/local/bin/perl print $message;

$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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-01-18 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?