Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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


Comment on Re: Re: for, foreach and $_...
Select or Download Code

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 making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-09-30 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (384 votes), past polls