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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-10-20 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (263 votes). Check out past polls.

    Notices?