in reply to
Use a module only if it is available
Instead of checking for the code slot in the current typeglob, you could check
$@
.
Comment on
Re: Use a module only if it is available
In Section
Cool Uses for Perl