Hi,
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:
print FILE2 "(n/t)" unless @newmessage ne "";
it won't print (n/t) even if it is empty.
any suggestions?
Brett
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:
print FILE2 "(n/t)" unless @newmessage ne "";
it won't print (n/t) even if it is empty.
any suggestions?
Brett