shell调perl问题
我的目的是test.sh调test.pl。
test.sh :
type=$1
serverName=$2
perl ./test.pl $type $serverName
test.pl :
use strict;
use warnings;
my $type = $ARGV[0];
my $serverName = $ARGV[1];
print "print : $type -- $serverName \n";
test();
sub test {
return "return : $type";
}
运行sh test.sh aaa bbb
-bash-3.00$ sh test.sh aaa bbb
: command not found
-- bbb aaa
不清楚原因,请高手回答。