Gossamer Forum
Home : General : Perl Programming :

Array Problem

Quote Reply
Array Problem
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
Subject Author Views Date
Thread Array Problem TheAnswer 2742 Aug 8, 1999, 4:20 AM
Post Re: Array Problem
Chris071371 2620 Aug 10, 1999, 3:48 AM
Post Re: Array Problem
TheAnswer 2618 Aug 10, 1999, 8:11 AM