Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Wrong + Right = Even Worse

by LanX (Chancellor)
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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2015-11-29 05:05 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 (746 votes), past polls