Elegant has asked for the wisdom of the Perl Monks concerning the following question:
This works great, it sets my output directory and everything. Now comes the issue. Let's say a user uses a directory with a dash:GetOptions { 'outdir=s' => \$out_dir, }
Suddenly the parameter stops at the hyphen and the script pretty much ends there because "-Folder" is not a parameter and doesn't mesh with anything. This is using Strawberry Perl 5.18 on Windows 7. Any help would be greatly appreciated!perl script.pl --outdir "D:\My-Folder"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parameters and Dashes
by toolic (Bishop) on Sep 17, 2014 at 18:40 UTC |