in reply to using a variable to specify which perl module to use
The if module may also be another option.BEGIN { $module = somecond() ? "Text::CSV" : "Text::CSV_XS"; require $module; $module->import; }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using a variable to specify which perl module to use (bareword)
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 |