> Incidentally, the $r->print() method conveniently lets you pass the string
> you want to send by reference.
Why is that "convenient":
Fast:
my $x = "fred" x 10000;
$r->print $x;
More obscure and microscopicaly slower:
my $x = "fred" x 10000;
$r->print \$x;
(Hint - Perl passes all values by reference. The point $r->print doing
an auto-dereference is supposed to be to let you pass a reference around
in *your* code. Personaly I don't think this was a good idea. If that's
what the user wanted he could have done it himself).
--
John Hughes <[EMAIL PROTECTED]>,
CalvaEDI SA. Tel: +33-1-4313-3131
66 rue du Moulin de la Pointe, Fax: +33-1-4313-3139
75013 PARIS.
- Slightly OT - Content-length Jim Serio
- Re: Slightly OT - Content-length Vivek Khera
- Re: Slightly OT - Content-length Frank Wiles
- Re: Slightly OT - Content-length Jim Serio
- Re: Slightly OT - Content-length Vivek Khera
- Re: Slightly OT - Content-length Jim Serio
- Re: Slightly OT - Content-length Perrin Harkins
- $r->print(\$var) (WAS: Re: Slightl... Ken Williams
- Re: $r->print and references: Was... John Hughes
- Re: $r->print and references: ... Matt Sergeant
- RE: $r->print and referenc... John Hughes
- RE: $r->print and referenc... Shane Nay
- RE: $r->print and referenc... John Hughes
- Re: $r->print and references: ... Perrin Harkins
