|
|
| There's more than one way to do things | |
| PerlMonks |
Re: $#array issueby citromatik (Curate) |
| on Jun 14, 2009 at 23:01 UTC ( #771481=note: print w/ replies, xml ) | Need Help?? |
|
If you comment the second line, $end will be undefined in the loop condition. Please, use strict and use warnings in your code if you want to learn Perl the easy way. This code works as expected:
BTW, here are another ways to address the same problem:
or even
citromatik
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||