Gossamer Forum
Home : General : Perl Programming :

Dynamic 'use lib' call?

Quote Reply
Dynamic 'use lib' call?
Hi. I'm basically trying to load the Perl module 'lib' dynamically. I currently have;

use lib $installation;

I also tried;

use lib "$installation";

use lib '$installation'; (which obviously didn't work, as the '' stops $installation being processed).

.... is this even possible? I am basically trying to get a script to interlink with several installations of LinksSQL... so after passing the path to the 'defs' folder, I then use;

Code:
use lib $installation;
use GT::SQL;
my $db = new GT::SQL $installation;

Anyone got any ideas? This is doing my head in :(

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Dynamic 'use lib' call? Andy 7709 Dec 2, 2003, 2:15 AM
Thread Re: [Andy] Dynamic 'use lib' call?
yogi 7514 Dec 2, 2003, 2:24 AM
Post Re: [yogi] Dynamic 'use lib' call?
Andy 7475 Dec 2, 2003, 2:37 AM