note
Discipulus
<I>> I wonder if "undef $@" before the <C>eval</C> would help ensure any error ending up in $@ is coming from the eval?</I><P>
Better using [DOC://local|<tt>local</tt>] in such case (I think..)
<c>
{
local $@;
eval "use Capture::Tiny qw(capture)";
if ( !$@ ) {
$HAVE_Capture_Tiny = 1;
}
}
</c><P>
See also [id://154876]<P>
L*<P>
<div class="pmsig"><div class="pmsig-174111">
There are no rules, there are no thumbs..<BR>
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
</div></div><!-- Wiki2Monks {"version":1.1416} -->
1210478
1210483