Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

$terminal poem

by Transalp (Sexton)
on Oct 27, 2010 at 08:53 UTC ( [id://867659]=poem: print w/replies, xml ) Need Help??

my $terminal = 1; my $maxpain = ?; my $minaccept = 100; my $can_ignore = 100; my $endoftime= 1000000000000000000000000000; my $time; my $sometime = $time + 30; my $moretime = $sometime+ 30; my $accept_last = "0"; my $i; if ($terminal) { my $pain; my $hope; for ($i=0; $i < $endoftime; $i++) { my $solutions_to_try = &SearchForOptions; if ($solutions_to_try) {$hope++;} $pain = "1"; $time++; if ($time > $sometime) {$pain = "2";} $can_ignore--; $hope--; $accept_last++; if ($time > $moretime) {$pain = "3"; undef $solutions_to_try;} if (! $solutions_to_try && $pain > $maxpain && $can_ignore < 0 && $accept_last > $minaccept) {last;} } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://867659]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found