Variable references
Like in other programming languages, we have the capability of taking references to variables, by using the prefix backslash (\
) operator for referencing and the prefix asterix (*
) operator for dereferencing:
Variable references are useful when passing them to functions (or methods) for assigning values.
There is also the possibility of taking references to the lvalues of an array or hash:
Last updated