How to set environment variable
- From: vicky_brsh@xxxxxxxxxxxxxx (Vikram Vikram Vikram)
- Date: 27 Sep 2007 14:47:42 -0000
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";
and want to display the contents of the environment variable in the command line after executing the script.
But it is not displaying the contents if i give
echo $HAI
Please help me out
Thanks in advance
Vikram
- Follow-Ups:
- RE: How to set environment variable
- From: Siva Prasad
- Re: How to set environment variable
- From: Jeff Pang
- Re: How to set environment variable
- From: Rodrick Brown
- RE: How to set environment variable
- Prev by Date: Re: Problem with repeating characters in regex
- Next by Date: Re: How to set environment variable
- Previous by thread: Problem with repeating characters in regex
- Next by thread: Re: How to set environment variable
- Index(es):
Relevant Pages
|
|