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

Do you already have the perl script and your c++ app doesn't get the call right?

Then the spaces in 'Bacon and Eggs' might have something to do with it

Or do you have to write the perl script now and don't know how?

In that case Getopt::Long is definitely the right fit for the way you are calling it.

But beware, spaces in names like Bacon N Eggs might make problems. I don't know how that can be corrected in Windows (maybe surround it with "), hopefully some other monk can answer that

  • Comment on Re: Passing C++ variable into Perl in command line