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

Re: Triggering 'strict' from within a package

by runrig (Abbot)
on Aug 12, 2002 at 16:47 UTC ( #189544=note: print w/ replies, xml ) Need Help??

in reply to Triggering 'strict' from within a package

After reading Abigail-II's answer and tye's answer, I looked in perlvar for $^H and found something almost identical to tye's answer:

BEGIN { require strict; strict->import('vars') if $condition } # which to import all restrictions would be BEGIN { require strict; strict->import if $condition }

Comment on Re: Triggering 'strict' from within a package
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-11-25 15:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (682 votes), past polls