Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Wrong + Right = Even Worse

by davido (Archbishop)
on Apr 03, 2014 at 15:52 UTC ( #1080966=note: print w/ replies, xml ) Need Help??


in reply to Wrong + Right = Even Worse

I haven't tested this, but can't you do this in your .pm module?

{ local %INC = .....; # Work, profit! } # %INC reverts. # Work on things that require an unadulterated %INC... 1; # Leave work by 5:30pm.

It seems like this is mostly what you are accomplishing by storing %INC's value in a lexical, and then restoring it later, except for the issue of lexical vs dynamic scoping, which is why I mention I haven't tested. ;)


Dave


Comment on Re: Wrong + Right = Even Worse
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-06-03 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (137 votes), past polls