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

Re^3: dynamically loading modules/maintaining dev v. prod modules

by John M. Dlugosz (Monsignor)
on Jun 01, 2006 at 19:26 UTC ( #553126=note: print w/ replies, xml ) Need Help??


in reply to Re^2: dynamically loading modules/maintaining dev v. prod modules
in thread dynamically loading modules/maintaining dev v. prod modules

You added a string to the list. The string happened to contain Perl syntax rather than a directory name.

You have to use a ref to a sub, not a string to be evaled.

sub x { print "I'm here! [@_]\n" }; use lib \&x; use FindBin; print "done.\n";
—John


Comment on Re^3: dynamically loading modules/maintaining dev v. prod modules
Download Code
Re^4: dynamically loading modules/maintaining dev v. prod modules
by Random_Walk (Parson) on Jun 04, 2006 at 11:03 UTC

    Nice trick, thanks for the help.

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-10-02 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (60 votes), past polls