Assuming your file association is correct
in reply to What's wrong with @ARGV - or with me?
Windows 7 Enterprise with Perl 5_16 from active state
Perl's file association is to gvim on this box though
C:\Users\utillitarian>perl test.pl foo
$VAR1 = [
print "Good ",qw(night morning afternoon evening)[(localtime)/6]," fellow monks."