给perl添加可执行权限:
chmod +x /usr/local/perl/bin/perl

然后再运行一下
/usr/local/perl/bin/perl -V

2011/5/5 xzherryjerry <[email protected]>:
>    Robin Lee:
>             您好!
>              我 输入  ls -l /usr/local/perl/bin
> perl1.pl【这是我的perl脚本】后,按Enter键后,屏幕显示:-rw-r--r- 1 root operator 24 May 4 23:19
> perl1.pl
>    /usr/local/perl/bin:
>    total 489
>    -rw-r--r- 1 500 4294967284 500184 Apr 25 1998 perl
>              我输入   ls -l /usr/local/bin
> perl1.pl【这是我的perl脚本】后,按Enter键后,屏幕显示:   -rw-r--r- 1 root operator 24 May 4
> 23:19 perl1.pl
>         /usr/local/bin:
>          total 169
>          -rwxr-xr-x 1 bin operator 338 May 21 2006 dejunk.sh
>          -rwxr-xr-x 1 bin operator  16072 Jun 1 2006 dir2html
>          -rwxr-xr-x 1 bin operator  15044 Jun 1 2006 hexd
>          -rwxr-xr-x 2 bin operator  55384 Jun 1 2006 httpd
>          -rwxr-xr-x 2 bin operator  55384 Jun 1 2006 in.httpd
>          -rwxr-xr-x 1 bin operator  8132  Jun 17 2003 shmem
>          -rwxr-xr-x 1 bin operator  18608 May 17 2006 vmw
>
>                                                               谢谢
>                                                               JerryLiu
>                                                                 2011-05-05
>
>
>
>  > -----原始邮件-----
>> 发件人: "Robin Lee" <[email protected]>
>> 发送时间: 2011年5月5日 星期四
>> 收件人: [email protected]
>> 抄送:
>> 主题: Re: Re: [PerlChina] minix2.04上执行perl
>>
>> ls -l /usr/local/perl/bin
>> 看看
>>
>> 再试试
>> ls -l /usr/local/bin
>>
>> 2011/5/5 xzherryjerry <[email protected]>:
>> >  还有,我用的是:minix2.04 perl5
>> >
>> >
>> >
>> >  > -----原始邮件-----
>> >> 发件人: "Robin Lee" <[email protected]>
>> >> 发送时间: 2011年5月4日 星期三
>> >> 收件人: [email protected]
>> >> 抄送:
>> >> 主题: Re: [PerlChina] minix2.04上执行perl
>> >>
>> >> 试下运行 /usr/local/perl/bin/perl -V
>> >> 看输出什么信息
>> >>
>> >> 2011/5/4 xzherryjerry <[email protected]>:
>> >> > 大家好!
>> >> >      我第一次发帖,不要拍砖啊!
>> >> > 是这样的:
>> >> >        我将perl.tar.Z解压到minix2.04的/usr/local/perl,但是我怎么
>> >> > 能够用这perl命令执行perl脚本呢?
>> >> >                                                                谢谢!
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
>> >> > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
>> >> > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
>> >> > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>> >> >
>> >>
>> >> --
>> >> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
>> >> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
>> >> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
>> >> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>> >>
>> >
>> >
>> > --
>> > 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
>> > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
>> > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
>> > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN
>  访问此网上论坛。
>> >
>>
>> --
>> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
>> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
>> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
>> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>>
>
>
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

回复