Core Function Ref

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> Ref( $variable ) </pre> === Description === Retrieve the variable at the lowest depth in references that the current variable links to === Parameters === ==== $variable...")
Newer edit →

Revision as of 05:33, 3 February 2013

Ref( $variable )

Contents

Description

Retrieve the variable at the lowest depth in references that the current variable links to

Parameters

$variable

A variable to locate and return its ref.

(If the variable links to a ref that links to a ref that links to a ref it will return the last one it finds at the end of the chain assuming the chain does end... )

Return Value

None

Remarks

None.

Example

$a = qw(The quick brown fox);
$b = &$a;
println( isVarRef(      $b   ) ? "true" : "false" );
println( isVarRef(  Ref($b)  ) ? "true" : "false" );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox