#!/usr/bin/perl -w # csv2html.pl - Konvertiert CSV-Dateien nach HTML # Copyright (C) Sam Aug 4 13:59:19 MEST 2001 by Ingo Blechschmidt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Ingo Blechschmidt # Arberstraße 5 # 86179 Augsburg # E-Mail: iblech@web.de, http://www.way.to/uselinux/ # Tel.: +49 / 821 882955 # # $TITLE="CSV2HTML"; print "Content-type: text/html\n\n"; open(EINGABE, "\n\n$TITLE\n\n\n\n"; print "

$TITLE

\n
\n\n"; print "\n"; $header = ; @zeile = split(";", $header); print ""; foreach $zeile (@zeile) { print ""; } print "\n"; @tabelle = sort(); foreach $zeile (@tabelle) { @zeile2 = split(";", $zeile); print ""; foreach $zeile2 (@zeile2) { print ""; } print "\n"; } print "
$zeile
$zeile2
\n\n\n\n\n"; close(EINGABE);