#!/usr/bin/perl -w use strict; my $query_string = $ENV{"QUERY_STRING"}; if ($query_string) { @ARGV = ($query_string); print "Content-Type: text/html\n\n"; } my $i = 1; while (<>) { s/\r?\n$//; my ($name, $mail, $date, $body, $title) = split(/<>/); if ($i == 1) { print <$title

$title

EOF } if ($mail) { $name .= " <$mail>"; } $body =~ s@http://ime.nu/@http://@g; $body =~ s@(.+?)\1@$4$1@; print <$i F$nameF$date
$body

EOF $i++; } print <


EOF