These will die when they use up all the ram and crash the server :-(
push @a,1 while 1; # this is worse as it is geometric rather than linear @a = qw(1); for(;;) {push @a,@a}
These are examples of dangerous infinite loops because with each iteration they consume resources. In practice you are unlikely to strike this. By accident anyway.
cheers
tachyon
In reply to Re: Do infinite loops ever die?
by tachyon
in thread Do infinite loops ever die?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |