Gossamer Forum
Home : General : Perl Programming :

Using Strict: use $variable;

Quote Reply
Using Strict: use $variable;
Cany ou do this somehow? I want to use a module, but want the module to be a variable name:

use strict;
$variable = '123';
use $variable;

can I do this?

Quote Reply
Re: Using Strict: use $variable; In reply to
You need to use my....

my $variable = "123";

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: Using Strict: use $variable; In reply to
Yeah, i know that much. I just want to find out how to require the perl module if it has a variable name.

Quote Reply
Re: Using Strict: use $variable; In reply to
In Reply To:
how to require the perl module
Wink

Installation support is provided via ICQ at UIN# 53788453. I will only respond on that number.