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
Windows 7 Enterprise with Perl 5_16 from active state
Perl's file association is to gvim on this box thoughC:\Users\utillitarian>type test.pl #!/usr/bin/perl $dir=$ARGV[0]; use Data::Dumper; print Dumper(\@ARGV); print "$dir\n"; print shift; C:\Users\utillitarian>perl test.pl foo $VAR1 = [ 'foo' ]; foo foo C:\Users\utillitarian>
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
|
---|
In Section
Seekers of Perl Wisdom