I've just been playing with something. Basically, what I want to do is something like;
$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?
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!
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?

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!