Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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: (9)
As of 2014-12-22 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls