by:eval "use $perl_module" or die "Can't find $perl_module: $!\n";
eval "use $perl_module"; die "Can't find $perl_module: $@\n" if $@;
Eval just returns whatever was returned by use, which to my knowledge is undefined (please someone correct me if I'm wrong).
You need to check whether $@ is non-empty after the eval().
Liz
In reply to Re: Re: Re: module location
by liz
in thread module location
by hmerrill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |