Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Perlbotics (Archbishop)
on May 05, 2018 at 17:12 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found