You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tristan Greaves <tr...@extricate.org> on 2007/03/20 15:20:14 UTC

DProf - "Corrupting" __FILE__

Hi,

We've got some code which currently uses __FILE__ in order to determine 
the name of the currently executing Perl script.

However, if DProf is enabled within Apache, I note that __FILE__ gets
"corrupted": it no longer contains the name of the script.

Is there a way of stopping this from happening, or should I just modify 
the various scripts to use $ENV{SCRIPT_NAME} instead?

Thanks in advance,

Tris.

	


Re: DProf - "Corrupting" __FILE__

Posted by Perrin Harkins <ph...@gmail.com>.
On 3/20/07, Tristan Greaves <tr...@extricate.org> wrote:
> However, if DProf is enabled within Apache, I note that __FILE__ gets
> "corrupted": it no longer contains the name of the script.

This sounds like a general problem with DProf.  If you ask about it on
perlmonks.org or usenet, you might get some useful advice from a DProf
guru.  DProf does use the debugger hooks, so it may not be possible to
avoid this.

- Perrin