K
Kapil Khosla
Hi,
I have a small perl code
####
use strict;
print $#ARGV;
####
When I do perl 1.pl, it runs fine and gives the output 0.
But when I do 1.pl, it gives me the output -1.
I did the following already.
assoc .pl=Perl
ftype Perl=perl.exe "%1" %*
set PATHEXT=.pl;%PATHEXT%
This should have done the trick but it doesnt seem to work for me.
Anyone has any suggestions? I am testing this on Windows Server 2003.
Thanks a lot,
Kapil
I have a small perl code
####
use strict;
print $#ARGV;
####
When I do perl 1.pl, it runs fine and gives the output 0.
But when I do 1.pl, it gives me the output -1.
I did the following already.
assoc .pl=Perl
ftype Perl=perl.exe "%1" %*
set PATHEXT=.pl;%PATHEXT%
This should have done the trick but it doesnt seem to work for me.
Anyone has any suggestions? I am testing this on Windows Server 2003.
Thanks a lot,
Kapil