On 4/6/07, Jeni Zundel <[EMAIL PROTECTED]> wrote:
What is the difference between:a. while(defined(my $line = <>)) ... and b. while(<>)
snip while (<>) {} is shorthand for while (defined ($_ = <>)) {} The biggest difference is the use of a named variable $line instead of the default variable $_. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/