in reply to Want a Hashref. Getting a List in Scalar Context.
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