Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 about the Monastery: (16)
As of 2014-08-21 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls