Manoj
From: "Charles K. Clarkson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: how to set env variables?
Date: Mon, 10 May 2004 19:58:27 -0500
MIME-Version: 1.0
Received: from onion.perl.org ([63.251.223.166]) by mc4-f25.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Mon, 10 May 2004 17:58:53 -0700
Received: (qmail 3429 invoked by uid 1005); 11 May 2004 00:58:41 -0000
Received: (qmail 3412 invoked from network); 11 May 2004 00:58:41 -0000
X-Message-Info: JGTYoYF78jFINkMz3V7K7hTGsoWfBmdc
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=0.0 required=7.0tests=
X-Spam-Check-By: la.mx.develooper.com
Message-ID: <[EMAIL PROTECTED]>
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
In-Reply-To: <[EMAIL PROTECTED]>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Spam-Rating: onion.develooper.com 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 11 May 2004 00:58:55.0991 (UTC) FILETIME=[22ACA870:01C436F3]
Reynard Hilman <[EMAIL PROTECTED]> wrote: : : I have a perl script that runs just fine from command : line but not when I run it as cgi. I think it's because : there are some env variables that doesn't exist when I : run it as cgi. Is there a way to set the variables from : the perl script? : I tried $ENV{'VAR'} = 'value';
That usually works.
: but it doesn't make a difference.
Perhaps it's not an environment variable problem.
: btw, I'm using Apache as the webserver. Should I set : the env variables from Apache config instead?
That will set the variable across the entire server and is one recommended way. What happened when you tried that?
: any suggestion?
Show us your code. Let us confirm your reasoning.
HTH,
Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
_________________________________________________________________
Getting married? Find tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>