Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can I check if a loop's scope is entered for the first time?

by Perlbotics (Bishop)
on May 05, 2018 at 17:12 UTC ( #1214098=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while( countdown( $limit )->( my $x ) ) {
     # do something with $x
    }
    
  2. or download this
    my $it = countdown( $limit );
    while( $it->( my $x ) ) {
     # do something with $x
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-08-17 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?