Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My question is: how is the expression in $hash{expression} stringified?
perldata says anything more complicated than a simple identifier inside a hash subscript will be interpreted as an expression but it doesn't say how such an expression is stringified. I recently (just this week, after many years of using perl) came across the subscript separator, nicely described in perlvar. The form of the expression I was trying to understand was $href->{$x,$y}. I spent many hours looking for an explanation of this syntax before a fortuitous google search turned up the entry in perlvar, where I don't think I ever would have looked on my own. I had looked in perlsyn, perldata and perlop and searched extensively on-line without finding a description of this form. Was I missing something? It would have helped me tremendously (as in, saving me many hours of searching) had the perldata man page mentioned, where it describes how the content of the curlies is forced to be a string, somethinge about $; and multidimensional array emulation. So, now I am wondering if there is a better reference to perl syntax and semantics for perl 5.8.8 than perldata, perlsyn and perlop. Any suggestions? Also, how should I, if I were so bold, suggest an improvement to the standard documentation? In reply to hash key stringification by ig
|
|