On Wednesday, Oct 2, 2002, at 18:39 Europe/London, Stephen Clouse wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Oct 02, 2002 at 09:11:54AM -0400, Geoffrey Young wrote:
>> I thought that Doug had mentioned a few times that this functionality
>> was a mistake in 1.0 and deprecated in 2.0.  in fact, I thought it was
>> in the 2.0 docs someplace, but I couldn't find it.
>
> Hmmm...may I make a plea otherwise :)  Being able to pass a reference 
> is much
> preferred when outputting large strings (as we tend to do).  I suppose 
> I'd have
> to hear why it was considered a mistake, since I really don't see it 
> as anything
> but useful.

IIRC it's because the print function is implemented in XS, so if you 
pass a large string there's no copying occurring like there would be if 
it was implemented in perl space naively. (i.e. my $string = shift).

Matt.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to