Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-02-13 05:21 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (418 votes), past polls