Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Mini-Tutorial: Dereferencing Syntaxby ikegami (Patriarch) |
on Jun 20, 2012 at 16:54 UTC ( [id://977408]=perlmeditation: print w/replies, xml ) | Need Help?? |
Whenever you can use the name of a variable, you can use a block that evaluates to a reference instead. For example, the following are valid syntax for specifying an array:
This is the "circumfix syntax" illustrated in the table below. An alternative syntax colloquially known as the "arrow notation" is easier to read, but requires Perl 5.20+ in some cases. This is the "postfix syntax" illustrated in the table below.
See also:
Back to
Meditations
|
|