Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: ~~ and list literal

by LanX (Chancellor)
on Oct 25, 2012 at 13:52 UTC ( #1000875=note: print w/replies, xml ) Need Help??

in reply to ~~ and list literal

there is no "list literal" in perl only a array literal.

parens just do precedence groupings, the comma is the "scalar list operator".

You need list context for it to work like you expect it.

Maybe a look at the "brackets vs comma" talk might help.

Cheers Rolf

Replies are listed 'Best First'.
Re^2: ~~ and list literal
by Anonymous Monk on Oct 25, 2012 at 23:18 UTC
    "List literal" is mentioned like a dozen times in the Llama book. I think that means it exists :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000875]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2017-08-24 03:33 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (363 votes). Check out past polls.