Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Comment on


You are correct that code should handle the case of, for instance, file names with spaces. However, in the example given, where the Perl interpreter is being invoked on the Windows cmd.exe command line along with a script name and command line parameters, it is cmd.exe that is handling the command line arguments and passing them to Perl. No amount of defensive programming in one's script would prevent a file name with space that does not have double quotes around it from being interpreted as two different elements of what becomes @ARGV.

In reply to Re^8: How to pass a file to GetOpt by Sinistral
in thread How to pass a file to GetOpt by Anonymous Monk

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others surveying the Monastery: (5)
    As of 2014-12-27 01:23 GMT
    Find Nodes?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?

      Results (176 votes), past polls