作者iFEELing (ing)
看板perl
标题Re: [问题] 刚接触perl的极新手问题
时间Fri Dec 8 17:17:26 2006
※ 引述《NEIVES ( )》之铭言:
: 我作业系统是用windows XP (SP2)
: 有安装ActivePerl (ActivePerl-5.8.8.819-MSWin32-x86-267479.msi)
: 然後使用Crimson Editor来编写Perl
: (里面的user tool里的Command栏位中有填入 c:\perl\bin\perl.exe)
: 不过在执行最简单的 "hello world" 时却执行不出来... orz
: 以下是程式码 (Crimson Editor就有的范例)
: #!/usr/bin/perl -w
: # basic template file for perl
: use strict;
: print "hello world\n";
: 以下为Crimson Editor最底下显示的结果
: ---------- Capture Output ----------
: > "C:\Perl\bin\perl.exe" hello world program.pl
很诡异 为什麽你的shell会吃到这样的字串
正常执行应该是 C:\Perl\bin\perl.exe program.pl
不知道为什麽 可能是因为你editor设定的关系 送出的 command 变成
"C:\Perl\bin\perl.exe" hello world program.pl
perl 把 hello 当成 你要执行的档案名吃进去 然後告诉你找不到这个档案
所以问题或许在你editor的设定上?
: Can't open perl script "hello": No such file or directory
: > Terminated with exit code 2.
: 请问"No such file or directory"是代表我没有设定好Perl吗?
: 还是其他什麽问题呢??
: 希望板上的高手能教我该怎麽做才能让Perl正确的执行.. QQ
--
随着岁月流过 └
┘ 曾经
的年少轻狂 不
再 ┌┐
那些疯狂的不拘的奔
放的 ┌
┐ 刻在一张张
相片上 └也刻在
心中
无意中提起 也只
勾起嘴角的
微笑 └┘ 是啊
你不是从前的你
我也不是从前的我了
└┘ 我们被外
在的环境改变 重塑 被压进这个世
界 ┌┐ └
┘
但当
凝望你的双
眸┐ 最令我感
动的 ┌┐ └
┘
ξ amiangel └┘ ┌
┐ 是你眼神深处
我们曾有过
的真挚情感
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.22.18.90
1F:推 imce:"C:\Perl\bin\perl.exe" "hello world program.pl" 12/09 00:15