Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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??


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

  • Comment on Re: Want a Hashref. Getting a List in Scalar Context.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://350541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found