Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Join and Concatenation

by toolic (Bishop)
on Sep 13, 2013 at 18:03 UTC ( #1053982=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "\nConcatenation and join (without parens)- NOT OK\n";
    $cols = '[' . join('],[', @array . ']');
    
  2. or download this
    $cols = join ',', map { "[$_]" } @array;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-07-31 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls