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
In reply to using a variable to specify which perl module to use by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |