方法一: In shell using export to output a variable, and in perl using special variable %ENV to get shell's variables.i.e.:--- shell box---$ /bin/ksh# export x=Foo# perl -e 'print $ENV{"x"}'------------- 方法二: