P is for Practical | |
PerlMonks |
Re: 'prev' in for loopby blazar (Canon) |
on Dec 06, 2005 at 14:52 UTC ( [id://514478]=note: print w/replies, xml ) | Need Help?? |
In for loop, i can able to move my index to either 'last' or 'next' . I don't know why it's throwing error, when i use 'prev' for accessing prev index. It's throwing an error due to a perl bug: precisely that it is not implemented. Strangely enough neither the prev keyword nor that obvious bug are documented at all... The workaround is called $prev.
In Section
Seekers of Perl Wisdom
|
|