I am sorry not to have provided more detail. I inserted the following at the very beginning of my code which showed me that I am not getting any arguments:
my $cnt = @ARGV;
print "Count=$cnt\n";
print "@ARGV\n";
exit;
and I got the following when I run it:
H:\>History-Reader.pl arg1 arg2 arg3
Count=0
I also get the following when issuing suggested commands:
Interesting - If I run the script with "Perl" in front of the filename it works, but not if I run it via its association:
H:\>Perl History-Reader.pl arg1 arg2 arg3
Count=3
arg1 arg2 arg3
H:\>History-Reader.pl arg1 arg2 arg3
Count=0
How can I get it to work without having to prefix "Perl"?
There's a few links there to further information. The one at the bottom of the thread provided by tye leads to a discussion about setting PATHEXT (amongst other things): Re: Out of date over <> and 5.10 (redir). I'd suggest you look at this one first.