in reply to How to capture the failure reason of Email::Sender?

The thing Try::Tiny catches is the thrown error object, so inspect it.
#!/usr/bin/perl use warnings; use strict; use Try::Tiny; sub My::Error::message { shift->{message} } try { die bless { message => 'Not enough resources' }, 'My::Error' } catch { my $error = $_; warn $error->message; }
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: How to capture the failure reason of Email::Sender?
by vitoco (Hermit) on Oct 02, 2018 at 09:19 UTC

    So $_ has the captured object... Now I see it! :-)

    Thank you!!!!!