Re: Conditional module loading

2007-08-09 Thread Fermín Galán Márquez
al mode of operation). However, the program also has a "batch" mode (for users than don't have a X environment available, like the one that access to the machine where the program executes through SSH and don't want or are unable to export the X environment). So I need conditional m

Re: Conditional module loading

2007-08-08 Thread Fermín Galán Márquez
: +34 93 645 29 12 Fax : +34 93 645 29 01 Email address: fermin dot galan at cttc dot es Mumia W. escribió: On 08/07/2007 10:18 AM, Fermín Galán Márquez wrote: Hi! I'm trying to introduce conditional module loading in a Perl program, but I'm experiencing problems. For example: [...]

Re: Conditional module loading

2007-08-07 Thread Chas Owens
On 8/7/07, Fermín Galán Márquez <[EMAIL PROTECTED]> wrote: > Hi! > > I'm trying to introduce conditional module loading in a Perl program, > but I'm experiencing problems. For example: > > ... > if ($some_condition) { > use ModuleA; > (doing some

Re: Conditional module loading

2007-08-07 Thread Mumia W.
On 08/07/2007 10:18 AM, Fermín Galán Márquez wrote: Hi! I'm trying to introduce conditional module loading in a Perl program, but I'm experiencing problems. For example: [...] "Use" is done at compile-time, so both modules will have been loaded before the if statement i

Re: Conditional module loading

2007-08-07 Thread Paul Lalli
On Aug 7, 11:18 am, [EMAIL PROTECTED] (Fermin Galan) wrote: > I'm trying to introduce conditional module loading in a Perl program, > but I'm experiencing problems. For example: > > if ($some_condition) { > use ModuleA; > (doing something using ModuleA)}

Conditional module loading

2007-08-07 Thread Fermín Galán Márquez
Hi! I'm trying to introduce conditional module loading in a Perl program, but I'm experiencing problems. For example: ... if ($some_condition) { use ModuleA; (doing something using ModuleA) } else { use ModuleB; (doing something using ModuleB) } That is, if $some_co