SPUG: dynamic 'use lib'

Daryn Nakhuda daryn at marinated.org
Wed Mar 6 18:58:42 CST 2002


is there a way to do something along the lines of:

$libdir = "/usr/local/foo";
use lib $libdir;
use BAR; # which is in $libdir

I get the following:
Empty compile time value given to use lib




 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org





More information about the spug-list mailing list