Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl execution from command line question

I replaced ActivePerl with Strawberry Perl on my WinXP last week.

I found I must run my Perl script with the command of perl myperl.pl; otherwise I only need run myperl.pl before install Strawberry. How can I only run myperl.pl as before?

I checked my environment configuration as below.

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`

Strawberry Perl path already listed in the Path value after install successfully.

Anything I missed? Thank you for your suggestion.

like image 692
Nano HE Avatar asked Nov 29 '22 05:11

Nano HE


1 Answers

Try from command prompt:

assoc .pl=PerlScript
ftype PerlScript=c:\strawberry\bin\perl.exe %1 %*

-- kmx

like image 160
kmx Avatar answered Dec 05 '22 19:12

kmx