Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: unable to resolve warning "Use of uninitialized value in ..."

by Corion (Patriarch)
on Oct 24, 2005 at 13:56 UTC ( [id://502467]=note: print w/replies, xml ) Need Help??


in reply to unable to resolve warning "Use of uninitialized value in ..."

The way to check for an undefined value in Perl is

if (defined $value) { ... };

(see perldoc -f defined for more information). You could also turn off the warning, but usually, turning off a warning is a bad practice because you're likely to forget to turn it on again immediately afterwards.

{ no warnings 'uninitialized'; print LOG $process->{ExecutablePath}, "\n"; };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found