When I invoke "perl foo.pl" from my terminal, I get:foo.pl: $ENV{FOO} = 'bar'; system 'perl bar.pl'; print `perl bar.pl`; bar.pl: print "I got $ENV{FOO}\n";
I got bar I got barSo maybe what you're actually seeing is something different? Perhaps a bit of code would help.
In reply to Re: system vs backticks
by Errto
in thread system vs backticks
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |