Date: Fri, 19 Oct 2001 11:25:02 +1000 From: Tony Landells <ahl@austclear.com.au> To: "Andre` Niel Cameron" <AndreC@Axxs.net> Cc: "free bsd" <freebsd-questions@FreeBSD.ORG> Subject: Re: Perl Help Please Message-ID: <200110190125.LAA29886@tungsten.austclear.com.au> In-Reply-To: Message from "Andre` Niel Cameron" <AndreC@Axxs.net> of "Thu, 18 Oct 2001 20:51:19 -0400." <077d01c15838$2a6af4f0$a50410ac@olmct.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, I missed the beginning of this (assuming there was one) so
I don't know what you're trying to achieve with the HTML, but I
can tell you what your perl error is...
AndreC@Axxs.net said:
> One the IF statement is always true!
> if ($check == $COMMAND[0]) {
> &Display_Html("templates/test.html");
> }
That's because you're doing a numeric comparison of two strings.
What you really want is a string comparison:
if ($check eq $COMMAND[0]) {
&Display_Html("templates/test.html");
}
Tony
--
Tony Landells <ahl@austclear.com.au>
Senior Network Engineer Ph: +61 3 9677 9319
Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355
Level 4, Rialto North Tower
525 Collins Street
Melbourne VIC 3000
Australia
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110190125.LAA29886>
