Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: arrange output in columns

by poj (Vicar)
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 scrutinizing the Monastery: (10)
As of 2015-08-31 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (354 votes), past polls