Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Replies are listed 'Best First'.
Re^4: dynamically loading modules/maintaining dev v. prod modules
by Random_Walk (Prior) 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 scrutinizing the Monastery: (6)
As of 2016-02-14 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (471 votes), past polls