Module
Text::CSV will take care of it automatically, but in general you could use the following:
my @modules=qw/Module::One_XS Module::Two_PP/;
foreach my $module (@modules) {
eval qq| use $module |;
last unless $@
}
Update: As choroba astutely remarked the "next if $@" should be "last unless $@"
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog:
Imperial Deltronics