Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: 'prev' in for loop

by blazar (Canon)
on Dec 06, 2005 at 14:52 UTC ( [id://514478]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found