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