Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Wrong + Right = Even Worse

by LanX (Canon)
on Apr 03, 2014 at 23:37 UTC ( #1081039=note: print w/ replies, xml ) Need Help??


in reply to Wrong + Right = Even Worse

> In the OO module, store %INC at the beginning, do all you need, then set %INC back to what it was.

Or the other way round, you create a loop inspecting the %module:: stash to copy all imported subs into %main::

At the end you need a big migration strategy which doesn't shoot you in the foot if you decide one day to migrate all "pseudo-modules" to real modules.

Cheers Rolf

( addicted to the Perl Programming Language)


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-24 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls