Just another Perl shrine | |
PerlMonks |
Re^3: do {$i++} until vs. $i++ untilby ikegami (Patriarch) |
on Mar 25, 2008 at 08:36 UTC ( [id://676071]=note: print w/replies, xml ) | Need Help?? |
Those two snippets aren't equivalent. Aside from the fact that the latter also exits if <STDIN> returned undef, you reversed the order of the loop body (...) and the exit condition (last INPUT if $line eq ".\n";)
In Section
Seekers of Perl Wisdom
|
|