Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: How do I tell if strict, taint, etc are on?

by barrachois (Pilgrim)
on Mar 16, 2006 at 20:01 UTC ( #537265=note: print w/ replies, xml ) Need Help??


in reply to Re: How do I tell if strict, taint, etc are on?
in thread How do I tell if strict, taint, etc are on?

Yeah, I see $^H, thanks, but since the docs say explicitly "WARNING: This variable is strictly for internal use only", it doesn't sound exactly like a supported API. :)

As to why, well, I'm working on a diagnostic/debugging page for some mod_perl web stuff, that shows me the environment, database handles, process status, and so on. As part of that, I wanted it to report as much as it could about the state of the running perl environment - including the various pragmas and what-not.


Comment on Re^2: How do I tell if strict, taint, etc are on?
Replies are listed 'Best First'.
Re^3: How do I tell if strict, taint, etc are on?
by Fletch (Chancellor) on Mar 16, 2006 at 20:12 UTC

    Ahh. OK I can see that. :)

    A problem that comes to mind right off is that strict is lexically scoped so you're probably not going to be able to tell from outside a given scope if it's on or off inside, at least as far as I can think of. You might be able to do some deep magic with one of the B modules, but I wouldn't count on it. If no one else here comes up with anything you might run this by p5p and see if anyone there can offer pointers.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537265]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-07-29 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls