in reply to Passing C++ variable into Perl in command line

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