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.
In reply to Re: Parameters and Dashes
by toolic
in thread Parameters and Dashes
by Elegant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |