| Paul Lalli 2006-02-22, 7:56 am |
| octaviomachoso@gmail.com wrote:
> I'm using ActiveState interpreter for windows. How can I run a script
> automatically with paramters?
> I've associated the .pl extention with perl.exe interpeter, but it
> doesn't take parameters.
This question seems to be coming up in this group about once per month.
Basically, there's a known problem with ActiveState Perl in that the
default file type association does not take command line arguments into
effect. Either run your script as:
perl file.pl arg1 arg2 arg3
instead of just
file.pl arg1 arg2 arg3
Or change your file association: in Windows Explorer, go to
Tools->Folder Options->File Types, find the .PL extension, and change
the advanced properties for open or run to:
"C:\Perl\bin\perl.exe" "%1" %*
Exactly as I've typed it above, including all quotes where they are.
Paul Lalli
|