Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Debugging "Use of uninitialized value" warnings.

by ww (Bishop)
on Apr 04, 2007 at 14:25 UTC ( #608284=note: print w/ replies, xml ) Need Help??


in reply to Re: Debugging "Use of uninitialized value" warnings.
in thread Debugging "Use of uninitialized value" warnings.

NovMonk: You'll need to read about warnings (perldoc -f warn) but this may also help.

This generates a compile-time error if you access a variable that wasn't declared via use vars, localized via my or wasn't fully qualified.

In (perhaps oversimplified) words, Perl is exhibiting a bit of DWIMery here; "protecting you from yourself" or "helping you catch mistakes like typos in a $var name (eg $var somehow is typoed as $vqr

ps: take the advice at the top of that page, and use perldoc to obtain a fuller explation.


Comment on Re^2: Debugging "Use of uninitialized value" warnings.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-09-15 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (146 votes), past polls