Problems? Is your data what you think it is? | |
PerlMonks |
Re: Want a Hashref. Getting a List in Scalar Context.by chip (Curate) |
on May 04, 2004 at 20:34 UTC ( [id://350541]=note: print w/replies, xml ) | Need Help?? |
A bare curly means BLOCK, not anon hash, when it occurs at the start of a statement. So if you mean it to be a hash ref, you should prefix it with something that forces it to be an expression, like a unary "+".
-- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Seekers of Perl Wisdom
|
|