Syntactic Confectionery Delight | |
PerlMonks |
Variable with curly braces?by wyt248er (Initiate) |
on Oct 24, 2021 at 06:10 UTC ( [id://11137939]=perlquestion: print w/replies, xml ) | Need Help?? |
wyt248er has asked for the wisdom of the Perl Monks concerning the following question: The perl guide document "perlpacktut" contain the following command statements, which look like assignments.
The tokens `$UTF8{Euro}` and `$Unicode{Euro}` seem to be treated as variables. However, the typical perl variables I am familiar with are of the form $v or ${v} but not $v{u}. In fact, the following code ends up with an error.
syntax error at ./test.pl line 3, near "$v{u" What are `$UTF8{Euro}` and `$Unicode{Euro}`? Which perl guide document explain this kind of token? Thank you in advance.
Back to
Seekers of Perl Wisdom
|
|