Randal L. Schwartz wrote:
>>>>>> "Rob" == Rob Dixon <[email protected]> writes:
>
> Rob> But the first causes Perl to keep two copies of the file data, which may
> be
> Rob> unacceptable depending on the the size of the file and the specification
> of the
> Rob> platform.
>
> Does it really? Have you tested this?
>
> I suspect it actually doesn't.
I tested the similar
my @data = do {
open my $fh, '<', $file or die $!;
<$fh>;
};
a while ago, but not on v5.10. I will see if I can find time to try it again.
R
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/