My mistake. Whereas Korn shell (ksh) supports the syntax you are using:
export ENVVAR=value
Bourne shell (sh) doesn't, instead preferring:
ENVVAR=value; export ENVVAR
Perl is undoubtably running the command using the default Bourne shell (sh). Try specifying Korn shell in your shebang (you may have to modify the path depending upon where ksh is located on your system):