```{index} single: gv_sv; B function ``` ```{index} single: B::gv_sv; Perl function ``` # gv_sv Return the scalar slot of the GV as a `B::SV`. ## Synopsis ```perl our $x = 42; my $gv = B::svref_2object(\*main::x); print $gv->SV->SvIV; # 42 ``` Equivalent to `*foo{SCALAR}` in Perl, but wrapped as a `B::SV`.