in reply to Setting Environment variables in Perl
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
|
|---|