Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Use of uninitialized value warning on print

by vek (Prior)
on Jan 23, 2005 at 05:18 UTC ( [id://424345]=note: print w/replies, xml ) Need Help??


in reply to Use of uninitialized value warning on print

Looking at your code I would guess that getservbyport() is returning undef which means that $svcwatch will also be undefined. Try adding the following to be sure:

my $svcwatch = ( $name !~ /^#/ ) ? getservbyport ( $port, $proto ) : next; if (! defined $svcwatch) { warn("getservbyport return undef"); }
-- vek --

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found