Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Recommendation for dynamically "using" modules

by McA (Curate)
on Jul 11, 2013 at 08:34 UTC ( #1043653=note: print w/ replies, xml ) Need Help??


in reply to Re: Recommendation for dynamically "using" modules
in thread Recommendation for dynamically "using" modules

Hi tobyink,

thank you for the hints. Especially Module::Implementation could be a way to think about my problem.

Today it's done via the following:

my $code = create_use_string(%parameters); eval "$code"; if(my $ex = $@) { die "Something went really wrong: $ex"; }
while create_use_string is returning a perl code snippet of the kind
use lib 'path_to_implementation_dependent_on_parameters'; use x; use y;
You see, everything is exported. That's not nice, but it's the way the current (old) code base is relying on.

Best regards
McA


Comment on Re^2: Recommendation for dynamically "using" modules
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-09-02 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (19 votes), past polls