Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

convert text file into html table

I have files with documentation information which i would like to put into a table, but i don't want to do it manually.  The files looks something like
             SECTION_KEY char (15) NOT NULL ,
             TERM char (5) NOT NULL ,
             CALL_NUMBER varchar (9) NULL ,
             DEPT char (4) NULL ,
             COURSE char (4) NULL ,
             SEC char (2) NULL ,
             TITLE varchar (32) NULL ,
             UNITS decimal(8, 2) NULL ,
             ACTIVITY1 char (3) NULL ,
 I want to have, for example section_key in column 1, char in column 2 and (5) in column 3.
Do i need a program to make this happen, and if so i would like to a code sample for that or something very similar.          
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoxomos
xoxomos

ASKER

Could you explain the 'print join' line?
thanks
perldoc -f join

    join EXPR,LIST
            Joins the separate strings of LIST into a single string
            with fields separated by the value of EXPR, and returns
            the string. Example:

                $_ = join(':', $login,$passwd,$uid,$gid,$gcos,$home,$shell);