Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Mysterious append failure.

by broquaint (Abbot)
on Dec 09, 2004 at 12:39 UTC ( #413498=note: print w/replies, xml ) Need Help??


in reply to Mysterious append failure.

Because you're declaring a variable in a loop and it falls out of scope outside of the loop e.g
perl -we "my $a = q[foo] for 1; print $a" Use of uninitialized value in print at -e line 1.
It's statement modifier abuse essentially.
HTH

_________
broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413498]
help
Chatterbox?
Discipulus second time; no questions.. o tempora o mores..
[1nickt]: I understood the first version ;-)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-11-24 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (354 votes). Check out past polls.

    Notices?