Scalar::Util
Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.
Functions
blessed
returns package name if blessed reference, undef otherwise.
dualvar
create a dual-valued SV with both numeric and string values.
Creates an SV with IOK|POK (or NOK|POK) flags set.
isbool
check if SV is a boolean (PL_sv_yes or PL_sv_no).
isdual
check if scalar is a dualvar. Always returns false.
isvstring
check if scalar was created as a v-string. Always returns false.
isweak
stub, always returns false.
looks_like_number
check if SV looks like a number.
openhandle
check if FH is an open filehandle.
Returns the handle if open, undef otherwise. Recognizes STDIN (fd 0), STDOUT (fd 1), STDERR (fd 2) as always open.
preamble
readonly
check SVf_READONLY flag.
pperl does not currently use a readonly flag, so always returns false.
refaddr
returns numeric address of the referent.
reftype
returns ref type string (SCALAR, ARRAY, HASH, CODE, etc.)
without regard to blessing. Returns undef for non-references.
set_prototype
set CV prototype string.
Stub implementation — prototype setting not yet wired into p5 CVs.
tainted
always returns false (no taint mode in pperl).
unweaken
stub.
weaken
stub. Weak references not fully implemented in p5 runtime.