Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Even column spreading of data

by Beatnik (Parson)
on Dec 22, 2002 at 00:53 UTC ( [id://221694]=note: print w/replies, xml ) Need Help??


in reply to Even column spreading of data

$items_per_column = 5; @items = qw(aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm); $counter = 0; for(@items) { print $_,"\t"; $counter++; if ($counter == $items_per_co +lumn) { $counter = 0; print "\n"; } }
or something like that

Greetz
Beatnik
...Perl is like sex: if you're doing it wrong, there's no fun to it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found