XP is just a number | |
PerlMonks |
Re^3: 'prev' in for loopby phaylon (Curate) |
on Dec 07, 2005 at 13:34 UTC ( [id://514831]=note: print w/replies, xml ) | Need Help?? |
Because that's how Perl was designed. It would IMO be more confusing than supportive to the programmer. Also, like Perl Mouse said, last and next don't influence the loops position (directly), more the control flow. 'last' exits the block, so the calling run was the /last/ one. 'next' jumps to the end of the block so the /next/ run will start if there is any. 'redo' redoes the block without going to the next iteration.
Ordinary morality is for ordinary people. -- Aleister Crowley
In Section
Seekers of Perl Wisdom
|
|