in reply to Re: How do I search and output results to HTML from a CSV database file?
in thread How do I search and output results to HTML from a CSV database file?

which in turn can be shortened to
print join(",",unpack("A8A10A2",$_)),"\n" while <DATA>;
and run from the command line as
perl -i.bak -l -ne "print join(',',unpack('A8A10A2',$_));" filename
this will do the conversion for you. I'm sure there's a module out there which parses comma delimited files into html tables. hope this helps

larryk

---------------------------------------------------- $less->{'chars'} = `"time in the pub" | more`; # :-D

Replies are listed 'Best First'.
Re: Re: Re: How do I search and output results to HTML from a CSV database file?
by buckaduck (Chaplain) on May 15, 2001 at 18:52 UTC
    The module you're thinking of is Data::Table. From the docs:
    $t = Data::Table::fromCSV("aaa.csv"); # Read a csv file into a table +oject print $t->html; # Display a 'portrait' HTML TAB +LE on web.
    buckaduck