Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: arrange output in columns

by rjt (Deacon)
on Jun 17, 2013 at 18:46 UTC ( #1039444=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     use warnings;
     use strict;
     
    ...
         $line =~ s/\n(?!\z)/,/g;  # Delimit with commas, except for last 
    +\n
         print $line;
     }   
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039444]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-12-11 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.