in reply to Aren't there code refs as well as function refs?
This a ref of a named function
This a ref of a anonymous function
(Code-blocks and anonymous hash references are distinguished by "looks-like guessing")
Curlies are also used for explicitly marking symbol names after sigils
After defining
THAT'S ALL!
This should be a list of all uses of curly brackets in Perl (omitting sublanguage syntax like regex)
Please explain what you don't understand.
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Aren't there code refs as well as function refs?
by tobyink (Canon) on Mar 05, 2023 at 14:04 UTC | |
by LanX (Saint) on Mar 05, 2023 at 14:34 UTC | |
by tobyink (Canon) on Mar 05, 2023 at 15:03 UTC | |
by LanX (Saint) on Mar 05, 2023 at 17:41 UTC |