You'll need to surround the command line call containing spaces with double qoutes on Windows. Here's an example using Getopt::Long:
use Getopt::Long; GetOptions( "n=s" => \$name, "h=s" => \$host );
Your arguments will both be strings in this example and referenced from the command line as -n and -h. From there you can reference the arguments using $name and $host
In reply to Re: Passing C++ variable into Perl in command line
by spivey49
in thread Passing C++ variable into Perl in command line
by Kastagire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |