in reply to Try::Tiny - return in catch from sub
return returns from the try block, not from the parent sub (note that this is also how eval works, but not how TryCatch works):
I would return a value from the try block that signals error or no error, and put the subs return() outside of the try block
|
|---|