BEGIN { unless (eval "require MyModule") { warn "Eeek! no MyModule: $@"; } } BEGIN { unless (eval "use MyModule") { warn "Eeek! no MyModule: $@"; } }
--
$you = new YOU;
honk() if $you->love(perl)
In reply to Re: Best way to check for installed module
by extremely
in thread Best way to check for installed module
by jmay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |