Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by ww (Archbishop)
on Apr 04, 2007 at 14:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://608284]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-16 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found