in reply to Problem with getting the correct arguments for my local Perl script

If you put single-quotes around your 'text strings' in your call to the perl script, it will solve the problem you mentioned(empty strings), plus allow spaces in the text.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

  • Comment on Re: Problem with getting the correct arguments for my local Perl script

Replies are listed 'Best First'.
Re^2: Problem with getting the correct arguments for my local Perl script
by Anonymous Monk on Jul 05, 2014 at 19:34 UTC

    * Fine print: May not work on your OS.

    OP: This is really more of a PHP question than a Perl question, so you might want to ask there. Some quick Googling seems to show that PHP doesn't support the more fine-grained control of arguments passed to other commands that Perl supports, but I may have missed something.