• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

Issues runnign scripts under XP with ActivePerl 5.6

I've installed ActivePerl 5.6 on Windows XP Pro SP1, and it sort of works.  If I run a script from the command prompt, then the script doesn't pick up the arguments passed from the command line, however, if I preface the script with "perl", then it runs (well, until it hits another script called from this script...):

I created a simple script to test, and found that the arguments simply don't get passed:

print 'Hello';
print $ARGV[0];

C:\GKN>test.pl A
C:\GKN>perl test.pl A

The package installed without error. My PATH environment variable is:

C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\ENGLISH;C:\Program Files\QuickTime\QTSystem\

and PATHEXT is:


Any ideas as to what is going on here? It's driving me nuts! :-)

Duncan Meyers
Duncan Meyers
  • 2
1 Solution
You need to adjust the .pl file association and "tell it" to "look for" the arguments.

Tools > Folder Options > File Types
Locate the .PL extention and modify it this:

"C:\Perl\bin\perl.exe" "%1" %*
It's possible that you don't have a .PL extension configured in the file types.  If that's the case, then clickon the "New" tab in the 'File Types' dialog box and create a file association giving the line I posted as the application to use for the 'Open' action .
Duncan MeyersAuthor Commented:
>"C:\Perl\bin\perl.exe" "%1" %*

Bingo! That was it. The .PL file extension was associated, but instead of the Advanced button I'd normally expect to see under Tools>Folder Options>File Types, I had a Restore button in its place. I clicked on it, then the Advanced button returned and I could then confirm that the Application Used... string was correctly set.

Thanks! You're my hero!


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now