kulls has asked for the wisdom of the Perl Monks concerning the following question:
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.
Is there any specific reason behind this?.Can anyone tell me any suggestion or alternative for this?
i understand that there is no 'prev' in for loop.When i was trying to move the index in backward i got this error which is similar kind of action like next if($_ eq 'foo ) , instead prev if($_ eq 'foo').why not this applicable in perl is my question?