Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: A lexical lib pragma?

by ikegami (Patriarch)
on Jan 04, 2020 at 08:28 UTC ( [id://11110940]=note: print w/replies, xml ) Need Help??


in reply to Re^2: A lexical lib pragma?
in thread A lexical lib pragma?

The change is seen everywhere in the interpreter, and that's the very definition of global. In any case, it's definitely not lexical! The point is that changes to @INC could have very far reaching effects. The fact that the change is temporary doesn't change that.

I did originally imagine lib::lexical mainly as a syntax sugar for 'local @INC = (..., @INC)'.

That would be FAR clearer to the reader! (But just as dangerous and pointless.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found