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!