Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

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?
[marto]: heya jedikaiti!
[jedikaiti]: Cute Robot!
[jedikaiti]: How's life, marto?
[marto]: I saw this robot the other day, pretty fancy stuff. Things are pretty good jedikaiti, improving :) How are things with you?
[jedikaiti]: Doing OK, but a little achy this AM - I think the cats were using me as a wrestling mat and mattress while I was asleep last night.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2017-07-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (374 votes). Check out past polls.