There's more than one way to do things | |
PerlMonks |
Re: 'my' headache...why doesn't this work?by jeffenstein (Hermit) |
on Apr 05, 2002 at 17:05 UTC ( [id://156990]=note: print w/replies, xml ) | Need Help?? |
Deparse is your friend.
The my declaration is within the for loop, so for each @data, a new $columnsum is created. Update: As demerphq has pointed out, the deparse output is wrong for this snippet. The todo section at the top of B::Deparse even mentions this specifically. Now I'm off to search for what it is really doing... Update2: A google search for "my $x if 0" returns some answers. There is even a node here in the monestary that talks about it.
In Section
Seekers of Perl Wisdom
|
|