9 plan skip_all => "Sub::Util or Sub::Name required"
10 unless eval { require Sub::Util; defined &Sub::Util::set_subname; }
11 || eval { require Sub::Name; Sub::Name->VERSION(0.08) };
19 $name = (caller(0))[3];
21 is $name, "main::try {...} ", "try name"; # note extra space
26 $name = (caller(0))[3];
28 is $name, "main::catch {...} ", "catch name"; # note extra space
35 $name = (caller(0))[3];
37 is $name, "main::finally {...} ", "finally name"; # note extra space