Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: for, foreach and $_...

by larsen (Parson)
on Aug 18, 2003 at 14:21 UTC ( #284590=note: print w/replies, xml ) Need Help??


in reply to Re: for, foreach and $_...
in thread for, foreach and $_...

internally, I believe this is implemented as a while(COND) { ... } continue { ... }
Yes, it is:
lorenzo@alice:~$ perl -MO=Deparse,-x3 -e 'for( my $i = 0; $i < 10; $i+ ++ ) {}' while ($i < 10) { ; } continue { ++$i } -e syntax OK

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2016-09-28 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (525 votes). Check out past polls.