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.
i did have reservations when adding the stunt, but i figured the chances
of somebody printing a $reference on purpose, which was not interpolated
in another string already were pretty slim. seems you're the first to
notice in the two years since the "feature" was added :)
btw, just to be clear, $strings passed to $r->print() are not copied, they
are passed by reference, just like any argument to a subroutine. but
most subroutines copy the arguments into their own variables, e.g.:
sub foo {
my ($header, $body, $footer) = @_;
so the idea was that you could pass around references to strings, which
end up being passed to $r->print, without having to worry about
dereferencing.
> Here is a patch I made against the documentation in Apache.pm. Actually,
> I had to attach it because it was wrapping.
thanks!