标题: perl 中如何设定shell 的环境变量
richardxxg
新生入学
Rank: 1
注册用户



UID 116127
精华 0
积分 0(积分有什么用?)
帖子 44
阅读权限 10
注册 2005-4-6
状态 离线
发表于 2005-12-6 21:16  资料  个人空间  短消息  加为好友 
perl 中如何设定shell 的环境变量

请教版主:

如何把perl中的变量传递给shell scripts

如:

QUOTE:
#!/usr/bin/perl
$a=10.1.1.1;
$result=`/bin/sh ./test.sh`;

在test.sh中想要引用$a这个变量,如何写?

顶部
不容错过的IBM 集群技术资源汇总
 



当前时区 GMT+8, 现在时间是 2008-5-16 11:01

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.124962 second(s), 5 queries

清除 Cookies - 联系我们 - Linux伊甸园 - Archiver - WAP