Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How does strict work?

by IndyZ (Friar)
on Feb 17, 2001 at 09:51 UTC ( [id://59093]=note: print w/replies, xml ) Need Help??


in reply to How does strict work?

This does seem rather voodoo-ish at first, until we read the documentation. "perldoc perlvar" reveals that $^H holds, "the current set of syntax checks enabled by use strict and other block scoped compiler hints". It would seem to me that all of the actual strict code is built into the perl binary, and strict.pm uses tricks like bitmasks to set certain bits in this variable, telling perl to turn on/off certain parts of the strict checking code. You could set the bits yourself, if you wanted to live semi-dangerously.

--
IndyZ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found