On Tuesday 17 January 2006 09:30, radhika wrote:
[ . . ]
> 409 $plain_text .= $_ foreach (<$fh>);
> close $fh;
> --code end--
>
> I keep getting this error:
>
> readline() on closed filehandle $fh at
> /home/ars/sys/libperl/site/ARS/REPORTS/AggregateFills.pm line 409.
Is that above line with foreach is it a shorthand/substitute for:
while ( <$fh> ) {
$plain_text .= $_;
} # end_of_code
??? yes/no ??
--
And, please of course *do* listen to Mr. Clarkson and Shawn Corey's replies on
this thread/issue.
--
Alan.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>