Re: Why does $r->print() dereference its arguments?

2000-05-05 Thread Doug MacEachern
On Thu, 4 May 2000, Jeffrey W. Baker wrote: > Not strictly for debugging, but for introspection. I was toying with > a module that pokes around inside the perlguts of a running mod_perl > server and makes some nice displays out of them. Nothing for > production/money mind you, just amusement

Re: Why does $r->print() dereference its arguments?

2000-05-04 Thread Jeffrey W. Baker
On Wed, 3 May 2000, Doug MacEachern wrote: > 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 > > ex

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Doug MacEachern
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

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Gunther Birznieks
At 11:56 AM 5/3/00 -0700, Jeffrey W. Baker wrote: >On 3 May 2000, Chip Turner wrote: > > > "Jeffrey W. Baker" <[EMAIL PROTECTED]> writes: > > > > > Apache::print() dereferences its arguments. For example, this code: > > > > > > my $foo = "bar"; > > > $r->print(\$foo); > > > > > > prints "bar" ins

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Jeffrey W. Baker
On 3 May 2000, Chip Turner wrote: > "Jeffrey W. Baker" <[EMAIL PROTECTED]> writes: > > > 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

RE: Why does $r->print() dereference its arguments?

2000-05-03 Thread Geoffrey Young
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 03, 2000 2:23 PM > To: Geoffrey Young > Cc: mod_perl list > Subject: RE: Why does $r->print() dereference its arguments? > > > > > -Original Message-

RE: Why does $r->print() dereference its arguments?

2000-05-03 Thread Stas Bekman
> > -Original Message- > > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 03, 2000 2:07 PM > > To: Geoffrey Young > > Cc: mod_perl list > > Subject: RE: Why does $r->print() dereference its arguments? > > >

RE: Why does $r->print() dereference its arguments?

2000-05-03 Thread Geoffrey Young
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 03, 2000 2:07 PM > To: Geoffrey Young > Cc: mod_perl list > Subject: RE: Why does $r->print() dereference its arguments? > > > On Wed, 3 May 2000, Geoffrey

RE: Why does $r->print() dereference its arguments?

2000-05-03 Thread Stas Bekman
On Wed, 3 May 2000, Geoffrey Young wrote: > interesing behavior - print behaves the same way... http://perl.apache.org/guide/porting.html#Apache_print_and_CORE_print_ Under mod_perl CORE::print() will redirect its data to Apache::print() since the STDOUT filehandle is tied to the Apache module

RE: Why does $r->print() dereference its arguments?

2000-05-03 Thread Geoffrey Young
interesing behavior - print behaves the same way... however, when you concat the reference to another scalar things work right... $r->print($foo.\$foo); yields: fooSCALAR(0xXWHOOPSX) --Geoff > -Original Message- > From: Jeffrey W. Baker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, Ma

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Randal L. Schwartz
> "Jeffrey" == Jeffrey W Baker <[EMAIL PROTECTED]> writes: Jeffrey> Apache::print() dereferences its arguments. For example, this code: Jeffrey> my $foo = "bar"; Jeffrey> $r->print(\$foo); Jeffrey> prints "bar" instead of the expected SCALAR(0xDEADBEEF). Can anyone Jeffrey> explain the pur

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Chip Turner
"Jeffrey W. Baker" <[EMAIL PROTECTED]> writes: > 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?

Re: Why does $r->print() dereference its arguments?

2000-05-03 Thread Stas Bekman
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