Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Parameters and Dashes

by toolic (Bishop)
on Sep 17, 2014 at 18:40 UTC ( [id://1100957]=note: print w/replies, xml ) Need Help??


in reply to Parameters and Dashes

Your code doesn't compile, but this works for me on both linux and windows (5.12):
use warnings; use strict; use Getopt::Long; my $out_dir; GetOptions('outdir=s' => \$out_dir); print "$out_dir\n"; __END__ perl script.pl --outdir "D:\My-Folder" D:\My-Folder

Perhaps there is some shell quoting problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-24 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found