Gossamer Forum
Home : Products : DBMan : Customization :

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
Quote Reply
Re: Array problem In reply to
There is a general cgi-perl Forum in this site located at
http://www.gossamer-threads.com/...=topics&number=8

You may have better luck getting an answer there.

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us