my @a = qw( a b c ); for (@a) { print("$_\n"); # Prints "a", then "b", then "c". } while (@a) { print("$_\n"); # Prints an infinite number of blank lines. }
In reply to Re: Internally, how do for() and while() differ?
by ikegami
in thread Internally, how do for() and while() differ?
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |