in reply to Re^3: Help Changing use into require/import
in thread Help Changing use into require/import
Better using local in such case (I think..)
{ local $@; eval "use Capture::Tiny qw(capture)"; if ( !$@ ) { $HAVE_Capture_Tiny = 1; } }
See also eval, DESTROY, die and $@ - educational couple of hours
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Help Changing use into require/import
by stevieb (Canon) on Mar 07, 2018 at 22:08 UTC |