```{index} single: gv_name; B function ``` ```{index} single: B::gv_name; Perl function ``` # gv_name Return the GV's unqualified name. ## Synopsis ```perl 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.