Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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: (11)
As of 2015-05-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (550 votes), past polls