more useful options | |
PerlMonks |
Re^2: [Homework Question] Subroutines & Referencesby AnomalousMonk (Archbishop) |
on Feb 12, 2015 at 17:52 UTC ( [id://1116530]=note: print w/replies, xml ) | Need Help?? |
foreach $i (@array) { ... }
Posted code won't run under strictures due to non-declaration of $i iterator. Making $i lexical fixes this: Give a man a fish: <%-(-(-(-<
In Section
Seekers of Perl Wisdom
|
|