in reply to tabular format of data
Text::AsciiTable -- suggested by AM -- will allow you to have Perl print a plain-text, ink-on-dead-trees (or phosphors on a CRT, for another archaic technology) that will very closely match -- in appearance -- what you showed us.
But we could use some help from you, to help you.
How are you using "tabular?" In other words, do you mean an HTML table, an ASCII art representation such as you showed, or simply a <TAB> separated file (aka "tab separated file, or "TSV"), which can be printed to the aforesaid 'dead-trees' with sufficient spacing to make the columns distinct from one another?
Your followup node (it could have been edited into the original with an appropriate note marking the new content as an UPDATE) seems to me to mean that you have A:B in one array, and C:D in another. If accurate, that's merely going to require that you deal with two arrays, whereas, if "A:B" is a single value, then you can easily put as many such values as you need into a single array.
OTOH, if your "A:B" is a key:value pair (for example, if "A" is on the order of a family name, and "B" is like a given name), then consider using a hash as the intermediate format for your data.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tabular format of data
by deepak_4682us (Initiate) on Feb 18, 2012 at 00:59 UTC | |
by deepak_4682us (Initiate) on Feb 18, 2012 at 01:25 UTC | |
by deepak_4682us (Initiate) on Feb 18, 2012 at 02:35 UTC | |
| |
| |
|