in reply to 'prev' in for loop

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.