Gossamer Forum
Home : General : Perl Programming :

Possible with modules?

Quote Reply
Possible with modules?
I've just been playing with something. Basically, what I want to do is something like;

Code:
#!/usr/bin/perl

$type = "1"; # use 1 or 0

if ($type) {
use One::Module;
} else {
use Another::Module;
}

The problem is, that I still get error messages for one of the modules. The whole idea behind this is to let a user decide what module they want to use. If they have one module installed, then they should be able to choose that one. If not, then they can use the old one.

Any suggestions? Is it even possible? Unsure

Cheers

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 Possible with modules? Andy 4135 May 29, 2003, 9:35 AM
Thread Re: [Andy] Possible with modules?
Paul 3990 May 29, 2003, 9:41 AM
Thread Re: [Paul] Possible with modules?
Andy 3975 May 29, 2003, 9:42 AM
Post Re: [Andy] Possible with modules?
Paul 3965 May 29, 2003, 10:02 AM