Because the %ENV hash is not propagated to the shell..This works fine for me:
#!/usr/bin/perl $ENV{foobar} = "baz"; my $res = `echo \$foobar`; print $res; #prints 'baz'
In reply to Re^2: Problem using Backtick having quotes
by runrig
in thread Problem using Backtick having quotes
by perlmoon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |