Don't ask to ask, just ask | |
PerlMonks |
Re: whats wrong? it gives me many errorby LanX (Saint) |
on Sep 16, 2014 at 16:15 UTC ( [id://1100791]=note: print w/replies, xml ) | Need Help?? |
Additionally to the answers you already got on SO you should use my for all variables including $i . have a look at use diagnostics to improve error messages (and read them ;-)
read the part about lexically scoped variables:
if you don't know what lexically scoped is, have a look at Coping with Scoping
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :) PS: crossposting provokes downvotes! :)
In Section
Seekers of Perl Wisdom
|
|