上週我在WinXP上用Strawberry Perl替換了ActivePerl。從命令行執行Perl的問題
我發現我必須用perl myperl.pl
的命令運行我的Perl腳本;否則我只需在運行myperl.pl
之前安裝草莓。我如何才能像以前一樣運行myperl.pl
?
我檢查了我的環境配置如下。
C:\> Path C:\Program Files\ActiveState Komodo Edit 5\;C:\Perl\site\bin;C:\Perl\bin;C:\Perl\bin\;C:\Program Files\CodeSynthesis XSD 3.2\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common Files\Thunder Network\KanKan \Codecs;C:\strawberry\c\bin;C:\strawberry\perl\bin`
草莓Perl的路徑已經在Path值上市成功安裝後。
我錯過了什麼?謝謝你的建議。
我確認它有效。 +1在Windows中的命令行! – DVK 2010-06-10 11:22:04
它不適合我。我成功地從Windows命令窗口運行了兩行。但我試圖運行我的Perl腳本,它仍然失敗。我不知道爲什麼? – 2010-06-10 11:23:28
它的工作原理。我意識到我的計算機Perl腳本路徑應該是命令中的'c:\ strawberry \ perl \ bin \ perl.exe'。 http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ftype.mspx?mfr=true – 2010-06-11 01:47:39