[Top] [All Lists]

Re: OO confusion

Subject: Re: OO confusion
From: Rob Dixon
Date: Sun, 11 Jan 2009 18:53:30 +0000
Newsgroups: perl.beginners
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 $!;

a while ago, but not on v5.10. I will see if I can find time to try it again.


<Prev in Thread] Current Thread [Next in Thread>