We don't bite newbies here... much | |
PerlMonks |
Re^7: To initialise or not to initialise?by runrig (Abbot) |
on Jun 24, 2004 at 23:27 UTC ( [id://369517]=note: print w/replies, xml ) | Need Help?? |
When you loop over a list, the local variable is aliased to each member of the list. Yes, I got that part. The part that surprises me is that B::Deparse deparses it to something that doesn't work, and I always assumed that the deparsing was correct. Consider: This code doesn't run, and it is what I mistakenly assumed your code was the equivalent of (minus the use's and print).
In Section
Seekers of Perl Wisdom
|
|