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
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
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
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
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
> -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-
> > -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?
> >
>
> -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
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
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
> "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
"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?
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
13 matches
Mail list logo