CODE
#!/usr/bin/perl -w
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])<br>/pack("C", hex($1))/eg;
$FORM{$name} = $value;
}
open (QUOTE, '>>logs.txt');
print QUOTE "<center>$FORM{quote}<br><br>\n\n";
print QUOTE "<hr width=20%></center><br><br>\n\n";
close (QUOTE);
&thx;
}
else {
&error;
}
I have no problems with the subs .... I just want to end every line of text with a <br>. I have another perl script that reads the whole logs.txt file and pastes it into a HTML page. Can anyone help me?
Thanks in advance ...

