Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: If I was forced to use only one kind of loop for the rest of my days it would be a

by gloryhack (Deacon)
on Sep 30, 2005 at 00:17 UTC ( #496292=note: print w/replies, xml ) Need Help??


in reply to If I was forced to use only one kind of loop for the rest of my days it would be a

while ($bastard -> state() =~ /^alive$/i) { $bastard -> beat(severity => $max); } $cool_looping_constructs -> restore();
  • Comment on Re: If I was forced to use only one kind of loop for the rest of my days it would be a
  • Download Code

Replies are listed 'Best First'.
Re^2: If I was forced to use only one kind of loop for the rest of my days it would be a
by saskaqueer (Friar) on Oct 08, 2005 at 15:31 UTC

    I'm always picky when it comes to using regexes where a simple eq comparison would be fine (but then again, that's just me):

    $bastard->beat(severity => $max) while ( lc($bastard->state()) eq 'alive' ); $cool_looping_constructs->restore();

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2019-04-25 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (127 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!