I understand shell variables are local to the current shell while environment variables (the export
ed ones) are passed onto child processes forked by the shell.
When I run a Perl one-liner within double quotes I can access the (local) shell variable from the fork
ed perl process:
$ FOO=bar
$ perl -we "print qx'echo $FOO'"
bar
Why is that?