Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: while loop question

by VinsWorldcom (Parson)
on Sep 06, 2012 at 12:13 UTC ( #992072=note: print w/replies, xml ) Need Help??


in reply to while loop question

Are you looking for something more elegant than the following ugly code that would do the trick?

my $LastFlag = 0; while (CONDITION) { ... if (END_CONDITION) { $LastFlag = 1; last; } } if (not $LastFlag) { ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992072]
help
Chatterbox?
and all is calm...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-09-26 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?