in reply to Setting Environment variables in Perl
It works for me:
What does your code look like?$ echo $FOO $ cat >foo.sh #!/bin/sh echo $FOO $ chmod 755 foo.sh $ cat >foo.pl #!/usr/bin/perl $ENV{'FOO'} = 'bar'; system './foo.sh'; $ perl foo.pl # corrected, Hue-Bond++ bar $
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting Environment variables in Perl
by Hue-Bond (Priest) on Sep 12, 2005 at 14:14 UTC | |
|
Re^2: Setting Environment variables in Perl
by gargle (Chaplain) on Sep 12, 2005 at 07:55 UTC | |
by Random_Walk (Prior) on Sep 12, 2005 at 11:37 UTC | |
by mhacker (Sexton) on Sep 13, 2005 at 07:07 UTC |