Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: arrange output in columns

by poj (Prior)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2017-11-22 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?