方法一:
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"}'
-------------
方法二:
象C一样,PERL也有存储命令行参数的数组@ARG