On Dec 20, 2007 2:19 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> Octavian Rasnita wrote:
> > and I want to be able to choose the wanted module at runtime
snip
> Assuming that the path to the directory right above Questionnaire is
> included in @INC, this should work:
>
> require "Quest
Octavian Rasnita wrote:
I have a directory named "Questionnaire" which contains some modules
like "Files.pm", "MySQL.pm", and maybe others...
and I want to be able to choose the wanted module at runtime, using a
code like:
my $module = "Files";
require Questionnaire::$module;
my $obj = Ques
On Thursday 20 December 2007 10:38, Octavian Rasnita wrote:
>
> Hello,
Hello,
> I have a directory named "Questionnaire" which contains some modules
> like "Files.pm", "MySQL.pm", and maybe others...
>
> and I want to be able to choose the wanted module at runtime, using a
> code like:
>
> my $mo
On 12/20/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
> I want to be able to choose the wanted module at runtime
At runtime, or at compile time? You have to write your code with some
additional care if it has to be compiled before the module is loaded.
In any case, see the source for AnyDBM_F
On Dec 20, 6:38 pm, [EMAIL PROTECTED] (Octavian Rasnita) wrote:
> I have a directory named "Questionnaire" which contains some modules like
> "Files.pm", "MySQL.pm", and maybe others...
>
> and I want to be able to choose the wanted module at runtime, using a code
> like:
>
> my $module = "Files";