On Wed, 3 May 2000, Jeffrey W. Baker wrote:

> Apache::print() dereferences its arguments.  For example, this code:
> 
> my $foo = "bar";
> $r->print(\$foo);
> 
> prints "bar" instead of the expected SCALAR(0xDEADBEEF).  Can anyone
> explain the purpose of this behavior, or is it a misfeature?  In my case,
> this is not the desired behavior.

That's a performance improvement, see:
http://perl.apache.org/guide/porting.html#Apache_print_and_CORE_print_


______________________________________________________________________
Stas Bekman             | JAm_pH    --    Just Another mod_perl Hacker
http://stason.org/      | mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]  | http://perl.org    http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------

Reply via email to