HI,
This has nothing to do with the Links script, but I don't know any busy "just" cgi related forums, so I
posted it here.
I have this at the top of my script somewhere:
if ($FORM{'vars'} eq "yes") {
open(MSG,">$basepath/$baseindex/mtemp.dat") | | die $!;
print MSG "$FORM{'message'}";
close(MSG);
}
open(MSG,"$basepath/$baseindex/mtemp.dat") | | die $!;
@newmessage = <MSG>;
close(MSG);
now, when I try this:
if @newmessage eq "" {
print FILE "(n/t)";
}
it will just print (n/t) no matter what.
any suggestions?
Brett
This has nothing to do with the Links script, but I don't know any busy "just" cgi related forums, so I
posted it here.
I have this at the top of my script somewhere:
if ($FORM{'vars'} eq "yes") {
open(MSG,">$basepath/$baseindex/mtemp.dat") | | die $!;
print MSG "$FORM{'message'}";
close(MSG);
}
open(MSG,"$basepath/$baseindex/mtemp.dat") | | die $!;
@newmessage = <MSG>;
close(MSG);
now, when I try this:
if @newmessage eq "" {
print FILE "(n/t)";
}
it will just print (n/t) no matter what.
any suggestions?
Brett