gv_name#

Return the GV’s unqualified name.

Synopsis#

my $gv = B::svref_2object(\*main::foo);
print $gv->NAME;     # "foo"

The name alone, without the stash prefix. For *main::foo this is "foo"; combine with B::GV::STASH->NAME to recover the full name.