in reply to Re: Getting the name of sub from sub reference
in thread Getting the name of sub from sub reference

I have used the B module to display the glob's name which is what I think Sub::Identify uses:
use warnings; use strict; use B qw(svref_2object); sub foo { print "I really do exist!\n"; } for my $coderef ( \&foo, \&bar ) { unless ( defined &$coderef ) { printf "could not call %s\n", svref_2object( $coderef )->GV->N +AME; } } # A symbol table entry is created for bar print "$::{ 'foo' }\n$::{ 'bar' }\n";