From owner-freebsd-questions Thu Oct 18 18:25: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.austclear.com.au (ns2.austclear.com.au [192.43.185.70]) by hub.freebsd.org (Postfix) with ESMTP id 6F02D37B401 for ; Thu, 18 Oct 2001 18:25:04 -0700 (PDT) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.166.65]) by ns2.austclear.com.au (8.11.2/8.11.3) with ESMTP id f9J1P2B79307; Fri, 19 Oct 2001 11:25:03 +1000 (EST) (envelope-from ahl@austclear.com.au) Received: from tungsten (tungsten [192.168.166.65]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id LAA29886; Fri, 19 Oct 2001 11:25:02 +1000 (EST) Message-Id: <200110190125.LAA29886@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Andre` Niel Cameron" Cc: "free bsd" Subject: Re: Perl Help Please In-Reply-To: Message from "Andre` Niel Cameron" of "Thu, 18 Oct 2001 20:51:19 -0400." <077d01c15838$2a6af4f0$a50410ac@olmct.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Oct 2001 11:25:02 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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