Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 exploiting the Monastery: (5)
As of 2022-12-09 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?