Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by Utilitarian (Vicar)
on Jun 12, 2013 at 12:40 UTC ( [id://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 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>
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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-05-26 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found