Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

Replies are listed 'Best First'.
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 chilling in the Monastery: (1)
As of 2016-07-30 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (265 votes). Check out past polls.