```{index} single: hv_name; B function ``` ```{index} single: B::hv_name; Perl function ``` # hv_name Return the package name of a stash HV. ## Synopsis ```perl my $stash = B::svref_2object(\%main::); print $stash->NAME; # "main" ``` Meaningful only on stash hashes (those accessible as `%Pkg::`). A plain user hash returns an empty string.