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
    two arrays i have used to store the valus arrr1 will contact column1 arry2 will contain column2 and I wanted to repsnt in a tabular form , it might be either in HTML tabular form with border or formatted with hypens
      A.txt:- A:B C:D code: # it has column1 values of txt file @a1=`cut -d":" -f1 < A.txt; # it has column2 values of txt file @a2=`cut -d":" -f2 < A.txt; I wanted to reprent the values in tabular form
        i haved added the below lines in the script and i got some error: // my @data; foreach (my $i = 0; $i < @Arr1 && $i < @Arr2; $i++) { $data$i = $Arr1$i, $Arr2$i; } // error: syntax error near "];" / ---------------- still exists---- Also, i have tried to use Text: ASCIITable and its saying cann't locate ASCIITable.pm in @INC how can i resolve the issue
      A reply falls below the community's threshold of quality. You may see it by logging in.
      A reply falls below the community's threshold of quality. You may see it by logging in.
      A reply falls below the community's threshold of quality. You may see it by logging in.