Friday, December 19, 2008

How do I associate Perl.exe...

If you're a Windows user and you want to associate Perl.exe with your Perl scripts so you don't have to execute your programs in the following fashion:

> c:\perl\bin\perl.exe PowerToPerl.plx

Issue the following commands from a command prompt:

> assoc .plx=Perl
> ftype Perl="c:\perl\bin\perl.exe" "%1" %*

Now you can execute your Perl scripts using the following syntax:

> PowerToPerl

Give it a try!

No comments: