in reply to Internally, how do for() and while() differ?
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. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Internally, how do for() and while() differ?
by GotToBTru (Prior) on Oct 27, 2015 at 16:16 UTC | |
by LanX (Saint) on Oct 28, 2015 at 00:15 UTC | |
by GotToBTru (Prior) on Oct 28, 2015 at 12:10 UTC |