RE: How to set environment variable

2007-09-27 Thread Siva Prasad
Hi Vikram, You are not able to access the env variable coz it is not set as you have wished. Do like the following. Set environment variable using export. export HAI=hai and print the from your perl script. The above command sets the environment variable in your system EVN variables and you c

Re: Re: How to set environment variable

2007-09-27 Thread Jeff Pang
28 Sep 2007 03:45:54 -, vikram vikram vikram <[EMAIL PROTECTED]>: > > > > Hi All, > > Yes i tried by copying the file to .env and executed the .env. > > But still the environment variable is not set. Please suggest some > solution for setting the environment variable. May be some

Re: How to set environment variable

2007-09-27 Thread Chas. Owens
On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > can't you set the environmental variables for the parent shell > by running a script as a . or here file? snip When you use Korn, Bourne, BASH, etc. and say ". " or "source " before a script, it runs in the current process (i.e. the interp

Re: How to set environment variable

2007-09-27 Thread Jeff Pang
2007/9/27, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > can't you set the environmental variables for the parent shell > by running a script as a . or here file? > Can you? you can do it via shell's `source`,but not perl. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: How to set environment variable

2007-09-27 Thread hwigoda
can't you set the environmental variables for the parent shell by running a script as a . or here file? -Original Message- >From: Jeff Pang <[EMAIL PROTECTED]> >Sent: Sep 27, 2007 10:02 AM >To: vikram vikram vikram <[EMAIL PROTECTED]> >Cc: beginners@perl

Re: How to set environment variable

2007-09-27 Thread Jeff Pang
27 Sep 2007 14:47:42 -, vikram vikram vikram <[EMAIL PROTECTED]>: > > Hi All, > > I am new to perl. I am using "Active Perl-5.8.8" > > I want to set environment variable in a perl script > > Ex - #!/usr/bin/perl > $ENV{HAI} = "hai"; > > >

Re: How to set environment variable

2007-09-27 Thread Rodrick Brown
On 27 Sep 2007 14:47:42 -, vikram vikram vikram <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am new to perl. I am using "Active Perl-5.8.8" > > I want to set environment variable in a perl script > > Ex - #!/usr/bin/perl > $ENV{HAI} = "hai"