gv_sv#

Return the scalar slot of the GV as a B::SV.

Synopsis#

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.