作者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