Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: arrange output in columns

by poj (Priest)
on Jun 18, 2013 at 14:39 UTC ( #1039570=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # print 
    for (my $i =1; $i <= $#arr; $i++) {
    ...
       print join(',', @{$arr[$i]})."\n";
    #                   ^        ^ missing   
    }
    
  2. or download this
    Output     Required
    a,2        a,2
    ...
    c,4        c,4
    s          ,s
    w          ,w 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2014-10-30 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls