export MYVAR='xyz' perl -e 'print $ENV{MYVAR}'