Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

multiple columns print

by perlisfun (Sexton)
on Mar 22, 2002 at 17:00 UTC ( [id://153602]=perlquestion: print w/replies, xml ) Need Help??

perlisfun has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I searched CPAN and could not find a module to facilitate printing in multiple column mode. Based on the size of terminal and contents size, printing routine automatically decides how many columns it should print in each row. This is very common job. i bet there is something like that. If you know it, drop me a few lines. Really appreciate.

Replies are listed 'Best First'.
(jeffa) Re: multiple columns print
by jeffa (Bishop) on Mar 22, 2002 at 17:10 UTC
    Did you find Text::Autoformat. You didn't give any specific info on what you are printing, but i have a feeling this module will solve your problem. :)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
      Thanks, I will read the manual to see if it fits my requirements. Actually, what i want to do is that i want to print array on terminal in multiple column mode, like you type 'ls' command on unix.
        Thanks, everyone. I found a module called Array::PrintCols which is exactly what i want.
Re: multiple columns print
by belg4mit (Prior) on Mar 22, 2002 at 22:38 UTC
    You could also use Terminfo and write :-D, I'm sure Curses has widgets for this as well.

    --
    perl -pe "s/\b;([st])/'\1/mg"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found