Ïðèãëàøàåì ïîñåòèòü
ßçûêîâ (yazykov.lit-info.ru)

Reference: ref

PreviousChapter 5
Function Reference
Next
 

ref

ref $var

Returns a string indicating the type of the object referenced if var is a reference; returns the null string otherwise. Built-in types include:

REF
SCALAR
ARRAY
HASH
CODE
GLOB
If the referenced object has been blessed into a package, that package name is returned instead. You can think of ref as a "typeof" operator.


PreviousHomeNext
Reference: redoBook IndexReference: rename