Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 contemplating the Monastery: (13)
As of 2014-11-28 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (195 votes), past polls