Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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.

http://electure-ms.studiumdigitale.uni-frankfurt.de/vod/clips/aBeBckweFh/flash.html

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000875]
help
Chatterbox?
[LanX]: oh thank you! :)
[Eily]: partly because I read tsj as /t͡ʃ/, don't know if that's supposed to be the case
[LanX]: Yeah I think thats Dutch spelling rule
[erix]: but we don't sneeze any K's
[choroba]: we do
[Eily]: that was a sneeze overpowering a cough
[choroba]: Czechs sneeze "Hep-cheek"
vrk adds gingerbread cookies to the platter on the sideboard.
[erix]: I'll give that a try next time
vrk takes a cookie from the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2017-04-24 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.