Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: What's wrong with @ARGV - or with me?

by Utilitarian (Vicar)
on Jun 12, 2013 at 12:40 UTC ( #1038457=note: print w/ replies, xml ) Need Help??

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>type #!/usr/bin/perl $dir=$ARGV[0]; use Data::Dumper; print Dumper(\@ARGV); print "$dir\n"; print shift; C:\Users\utillitarian>perl foo $VAR1 = [ 'foo' ]; foo foo C:\Users\utillitarian>
Perl's file association is to gvim on this box though

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038457]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-07-31 08:49 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (269 votes). Check out past polls.