Hi sid.vertcool,
If I may add a few point here.

~ I need to create a table..how do i start my work
There are several ways you can do this. You can use Text::Table as mentioned by clueless newbie, one can also use Perl6::Form, infact, you can use printf.
See below for some example, using both Perl6::Form and Text::Table.

#!/usr/bin/perl use warnings; use strict; use Perl6::Form; my $student_data; chomp( my $title = <DATA> ); push @{$student_data}, [split] while <DATA>; print "\n\nFIRST TABLE:\n"; print form "==============================================", "| STD_NAME | STD_NUM | SUB_A | SUB_B | SUB_C |", "=============================================="; print form "| {<<<<<<} |{||||||} | {||||}|{|||||}|{|||||}|", $_->[0], $_->[1], $_->[2], $_->[3], $_->[4] for @$student_data; use Text::Table; print "\n\nSECOND TABLE:\n"; my $plain_table = Text::Table->new( split /\s+/, $title ); $plain_table->load( [@$_] ) for @$student_data; print $plain_table; __DATA__ student_name student_number subject_A subject_B subject_C zadok 3006 45 67 -- mechi 2917 67 89 45 judas 3010 20 -- 12 temin 1122 60 56 90
Output: First Table is by Perl6::Form and the Second Table by Text::Table
FIRST TABLE: ============================================== | STD_NAME | STD_NUM | SUB_A | SUB_B | SUB_C | ============================================== | zadok | 3006 | 45 | 67 | -- | | mechi | 2917 | 67 | 89 | 45 | | judas | 3010 | 20 | -- | 12 | | temin | 1122 | 60 | 56 | 90 | SECOND TABLE: student_name student_number subject_A subject_B subject_C zadok 3006 45 67 -- mechi 2917 67 89 45 judas 3010 20 -- 12 temin 1122 60 56 90
NOTE: Please, note that I don't know how the OP is getting his/her data as shown in the Original Post, I only used what I can come up with for data here.
Infact, you can even write your data to an Excel file directly if you wish using module like Spreadsheet::WriteExcel and the likes.
That been said, it's important to say, there is nothing like PERL as Perl is not an acronym see What's the difference between "perl" and "Perl"?
Hope this helps.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

In reply to Re: Creating table through PERL by 2teez
in thread Creating table through PERL by sid.verycool

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.