in reply to Specifying a shell for use with Backticks

You can specify enviornment variables for commands done in backticks by using the special %ENV hash, like this
$ENV{FRED}="JONES"; # this will print JONES print `echo \$FRED`;