develooper Front page | perl.perl5.porters | Postings from June 2008

Accessing caller's %^H at runtime in 5.8.x.

Thread Next
Paul Fenwick
June 21, 2008 07:13
Accessing caller's %^H at runtime in 5.8.x.
Message ID:
G'day p5p,

I'm working on autodie, and after investigating many, many different avenues 
of attack, I've discovered that my tricks for making lexical replacements 
for built-ins just don't when it comes to regular subroutines.

This isn't a problem for me under 5.10, where I can simply peek at the 
caller's %^H and determine if the autodie pragma should be in effect for 
that sub, however it's been causing me to lose sleep trying to get things 
working under 5.8.

On the assumption that %^H exists at run-time, is there any way to examine 
the caller's %^H at run-time under 5.8?  I'm happy to start digging into XS 
to find it, provided I know it's within the realm of possibility.

Many thanks,


Paul Fenwick <> |
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About