Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Use of uninitialized value at?

by kabel (Chaplain)
on Oct 08, 2002 at 19:15 UTC ( #203726=note: print w/ replies, xml ) Need Help??


in reply to Use of uninitialized value at?

one common idiom: defined $val or $val = "";
then $val is at least defined, and no warning appears.

HTH


Comment on Re: Use of uninitialized value at?
Download Code
Re2: Use of uninitialized value at?
by blakem (Monsignor) on Oct 09, 2002 at 04:09 UTC
    Or, since we want to apply this rule to a list:
    $_ = '' for grep !defined, @arr;

    -Blake

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (16)
As of 2014-07-11 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (230 votes), past polls