Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Backdating strict

by jcb (Parson)
on Nov 20, 2020 at 02:49 UTC ( [id://11123868]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Backdating strict
in thread Backdating strict

No, code brought in with use or require is its own top-level lexical scope.

Explained differently, lexical scopes do not cross file boundaries in Perl; the loading mechanism is not a preprocessor.

If this were not so, the common convention of making use strict; the first statement in a script would also apply strict to all library modules, but this does not happen.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found