Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://496292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2025-05-17 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.