in reply to arguments to perl -e

Perhaps this way:
export MYVAR='xyz' perl -e 'print $ENV{MYVAR}'
Boris