I find this useful for version checking modules and throwing out meaningful errors to users, if they're lacking a particular module.BEGIN { unless (eval "use $mod") { warn "couldn't load $mod: $@"; } }
In reply to Re: Checking for modules
by nega
in thread Checking for modules
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |