Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: why perl joins multy list parameters to one list

by moritz (Cardinal)
on Oct 18, 2011 at 11:34 UTC ( [id://932113]=note: print w/replies, xml ) Need Help??


in reply to why perl joins multy list parameters to one list

Note that Perl 6 flattens less eagerly, and tries hard to preserve information:

$ cat flatten.pl sub mysub(@a1, @a2) { say "a1: ", @a1.join(', '); say "a2: ", @a2.join(', '); } mysub((1..5), (6..9)); $ ./perl6 flatten.pl a1: 1, 2, 3, 4, 5 a2: 6, 7, 8, 9

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found