Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
I have an array which can be filled with different number of elements. E.g.
my @array = ('sv-bbh-2','sv-bbh-3','sv-bbh-4', 'sv-bbh-5','dwdm02','avo00106','avo01000');
This array could have 1 element or 217 elements.
What I now want is to print it in the form of a table (without border) to a xterm window:
adsm-02 besy-02 c006603 c007581 c008433 c009684 asterix c003097 c006664 c007653 c008433-1 c009853 avo00106 c003701 c006790 c007760 c008434 c009992 avo01000 c003706 c006792 c007761 c008436 c009993
The column width should be variable.
It's the same output you get when you use "ls" without any parameters in an overcrowded directory.
Is there a special Perl function to do this?
Thank you very much, Kurt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Create table from a list of values?
by halley (Prior) on Jul 28, 2003 at 16:26 UTC | |
|
(jeffa) Re: Create table from a list of values?
by jeffa (Bishop) on Jul 28, 2003 at 16:38 UTC | |
|
Re: Create table from a list of values?
by cianoz (Friar) on Jul 28, 2003 at 17:19 UTC | |
|
Re: Create table from a list of values?
by bart (Canon) on Jul 28, 2003 at 16:42 UTC | |
|
Re: Create table from a list of values?
by kutsu (Priest) on Jul 28, 2003 at 16:24 UTC | |
by halley (Prior) on Jul 28, 2003 at 16:30 UTC | |
|
Re: Create table from a list of values?
by cleverett (Friar) on Jul 28, 2003 at 16:46 UTC | |
|
Re: Create table from a list of values?
by cleverett (Friar) on Jul 28, 2003 at 17:42 UTC |