Sorry, forgot the final code tagmy $life; while($life) { if($ergs_expended) { $life++; } elsif($cheetos_eaten) { $life--; } else {} } while(true) { print "regret\n";
In reply to RE: Does anyone know how to do this in Perl?
by Simplicus
in thread I work out/exercise this often
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |