B::GV#

📦 min

Functions#

B::GV methods#

NAME#

Return the GV’s unqualified name.

FILE#

Return the source file that first introduced the GV.

Synopsis

print $gv->FILE;    # e.g. "MyModule.pm"

The filename perl recorded when the glob was created or first accessed as an lvalue. An empty string for globs with no recorded origin.

STASH#

Return the B::HV for the stash that owns the GV.

SV#

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

FORM#

Return the format slot of the GV as a B::CV (stash walking via O=Deparse visits every GP slot).

IO#

Return the IO slot of the GV as a B::IO.

CVGEN#

Return the GV’s method-cache generation number.

AV#

Return the array slot of the GV as a B::AV.

HV#

Return the hash slot of the GV as a B::HV.

CV#

Return the code slot of the GV as a B::CV.

EGV#

Return the “effective” GV (GvEGV) - for aliased globs, the canonical one.

GvREFCNT#

Return the refcount of the GV’s GP (slot-bundle) record.

LINE#

Return the source line where the GV was first introduced.

isGV_with_GP#

Return true if the SV is a GV that has a GP slot-bundle attached.

is_empty#

Return true if the GV has no slot-bundle (GP) at all.

GvFLAGS#

Return the GV-specific flag bits.

GP#

Return the address of the glob’s GP as an integer.

GPFLAGS#

Return the GP-level flag bits (GVf_INTRO, GVf_ASSUMECV, …).

FILEGV#

Return the *main::_<FILE glob for the file this GV was declared in.