djerius has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!use Module::Load qw( load ); my $module = 'MyModule'; eval { load $module }; die "can't load $module this way\n" if $@; eval "require $module"; die "can't load $module this way either\n" if $@;
|
|---|