#!/usr/bin/perl -w use strict; use Text::CSV_XS; my($csv) = Text::CSV_XS->new; my($c) = 0; my(%options,@em); $options{TABLE} = ""; $options{TH} = ""; $options{TD} = ""; $options{TR} = ""; if ($ARGV[0] eq "--help") { print < output END_HELP @em = ; exit(0); } map { if (/^(\w+)=(.*)$/) { $options{$1} = $2; } } @ARGV; while() { if ($c==0) { print "\n"; $csv->parse($_); map { print "\n"; } $csv->fields(); } else { $csv->parse($_); print "\n"; map { print "\t\n"; } $csv->fields(); print "\n"; } $c++; } print "
$_
$_
\n";