Here are a few code examples to keep you busy:
while (1); // Just sitting around, spinning.
while true; do true; done
while (1) { # sit 'n spin }
while { 1 } { # Also sit and spin. }
The Unbelievably Technically Advanced Everything Endless Loop
10 REM Hunt down and brutaly murder CPU cycles! 20 GOTO 10
for(;;){ /*Yee ha!*/ } /*Call me for a good time! * I have the added advantage of making your stack huge!*/ void blar (void) { /*MoreFun!*/ blar(); }
If you've got to do nothing in Perl, why not do it the stylish way? Pick one of these loopy ideas:
printable version
chaos
Everything2 Help