more useful options | |
PerlMonks |
Re^2: Unknown problem, throws "Useless use of privt var in void contxt"by halley (Prior) |
on Jan 22, 2008 at 14:13 UTC ( [id://663582]=note: print w/replies, xml ) | Need Help?? |
Your explanation of => is not entirely accurate.
is equivalent to The => operator does NOT wrap whatever appears on the left into a string. Instead, it allows any expression, but if a bareword is used, it turns the bareword into a string. Any other expression is left as-is, not even coerced into being a string. (Actually rolling a list into a hash will coerce the keys into strings unless the hash has some magic.) --
In Section
Seekers of Perl Wisdom
|
|