Damn you for being right! (just kidding)
And here's the relevant quote from perlop:
The => operator is a synonym for the comma, but forces any word (consisting entirely of word characters) to its left to be interpreted as a string (as of 5.001). This includes words that might otherwise be considered a constant or function call.
I won't be modifying my previous post; let the record show the error and its clarification. I'm sure someone will find it useful.
As for my assessment as to why his anonymous hash has only one element, and what might be done to correct the situation, my advice is still applicable.
Dave
In reply to Re^3: passing a variable as a string
by davido
in thread passing a variable as a string
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |