princepawn has asked for the wisdom of the Perl Monks concerning the following question:
BEGIN { + $main::MODULE = 'Text::CSV'; # $main::MODULE = 'Text::CSV_XS'; my $string = "use $main::MODULE;"; eval $string; } my $csv = $main::MODULE->new;
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using a variable to specify which perl module to use
by broquaint (Abbot) on Jul 15, 2003 at 17:32 UTC | |
by tye (Sage) on Jul 15, 2003 at 18:15 UTC | |
by William G. Davis (Friar) on Jul 15, 2003 at 18:45 UTC | |
by tye (Sage) on Jul 15, 2003 at 19:14 UTC | |
by broquaint (Abbot) on Jul 15, 2003 at 21:51 UTC | |
|
Re: using a variable to specify which perl module to use
by Ovid (Cardinal) on Jul 15, 2003 at 18:37 UTC | |
|
Re: using a variable to specify which perl module to use
by flounder99 (Friar) on Jul 15, 2003 at 18:35 UTC |