For example.
#!/usr/bin/perl use warnings; use strict; $ENV{'ANTH'} = "bignuts"; system('/bin/env');
when run like
# ./env.pl
will output, amongst other things:
ANTH=bignuts
If you do this (swapping the environment variable name and value as desired), does it show up when you execute this code?
cheers,
Anth
In reply to Re: Setting Environment variables in Perl
by anthski
in thread Setting Environment variables in Perl
by knsridhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |