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

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)

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 chanting in the Monastery: (6)
As of 2016-10-22 09:54 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.