in reply to Re^2: Try::Tiny not returning error
in thread Try::Tiny not returning error

Sorry, I didn't read your post properly. I don't think Try::Tiny handles warnings (just exceptions) but you can catch them:
sub set_delim { undef $delim; local $SIG{__WARN__} = sub { die() }; try { ...
Or you could turn warnings into exceptions:
sub set_delim { undef $delim; use warnings 'FATAL' => 'all'; try { ...

Replies are listed 'Best First'.
Re^4: Try::Tiny not returning error
by Audar (Novice) on Feb 13, 2014 at 14:58 UTC
    Thank you, that worked perfectly.
Re^4: Try::Tiny not returning error
by Audar (Novice) on Feb 13, 2014 at 15:03 UTC
    That worked perfectly, thank you.