From owner-freebsd-questions Sat Oct 20 13:44:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kabel203069.kabel.utwente.nl (kabel203069.kabel.utwente.nl [130.89.203.69]) by hub.freebsd.org (Postfix) with ESMTP id 5DE7F37B403 for ; Sat, 20 Oct 2001 13:44:43 -0700 (PDT) Received: by kabel203069.kabel.utwente.nl (Postfix, from userid 1000) id C889813677; Sat, 20 Oct 2001 22:44:41 +0200 (CEST) Date: Sat, 20 Oct 2001 22:44:41 +0200 From: Rogier Steehouder To: Andre` Niel Cameron Cc: free bsd Subject: Re: Perl Help Please Message-ID: <20011020224441.A497@localhost> Mail-Followup-To: Rogier Steehouder , Andre` Niel Cameron , free bsd References: <077d01c15838$2a6af4f0$a50410ac@olmct.net> <20011019081838.A616@localhost> <006201c15982$95ea5ef0$a50410ac@olmct.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <006201c15982$95ea5ef0$a50410ac@olmct.net>; from AndreC@Axxs.net on Sat, Oct 20, 2001 at 12:16:33PM -0400 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 On 20-10-2001 12:16 (-0400), Andre` Niel Cameron wrote: > > while () { print; } > > > > Or slightly more readable: > > > > while ($line = ) { > > print($line); > > } > > The second page still appends itself to the first, it does not load a new > seperate page. The first remark I made about the if statement was meant to solve that problem. This is just a remark on memory use. Reading a file line by line costs less memory than reading it all at once. This was taken from my original reply: > if ($ENV{'QUERY_STRING'} eq $COMMAND[0]) { > &Display_Html("templates/test.html"); > } else { > &Display_Html("templates/login.html"); > } This should solve the 'double page' problem. With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message