# name the blocks if we have Sub::Name installed
my $caller = caller;
- subname("${caller}::try {...}" => $try);
+ subname("${caller}::try {...} " => $try);
subname("${caller}::catch {...} " => $catch) if $catch;
subname("${caller}::finally {...} " => $_) foreach @finally;
try {
$name = (caller(0))[3];
};
-is $name, "main::try {...}", "try name";
+is $name, "main::try {...} ", "try name"; # note extra space
try {
die "Boom";