Randal L. Schwartz wrote: >>>>>> "Rob" == Rob Dixon <rob.di...@gmx.com> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/