# $catch->();
# name the blocks if we have Sub::Name installed
- _subname(caller.'::try {...} ' => $try)
+ _subname(caller().'::try {...} ' => $try)
if _HAS_SUBNAME;
# set up scope guards to invoke the finally blocks at the end.
croak 'Useless bare catch()' unless wantarray;
- _subname(caller.'::catch {...} ' => $block)
+ _subname(caller().'::catch {...} ' => $block)
if _HAS_SUBNAME;
return (
bless(\$block, 'Try::Tiny::Catch'),
croak 'Useless bare finally()' unless wantarray;
- _subname(caller.'::finally {...} ' => $block)
+ _subname(caller().'::finally {...} ' => $block)
if _HAS_SUBNAME;
return (
bless(\$block, 'Try::Tiny::Finally'),