in reply to Re: How do I open a file in a path that has spaces in the name?
in thread How do I open a file in a path that has spaces in the name?

  1. Perlmonks FAQ
  2. grinder did not say
    $dir = "\"Test Directory\""; mkdir ($dir) or die "$!\n$^E"; __END__ Invalid argument The filename, directory name, or volume label syntax is incorrect at - + line 2.
  3. grinder said quote your arguments, eg C:\> perl program.pl "i got spaces and I end up in $ARGV[0]" or
    C:\> perl -le"print for @ARGV" "i got spaces and I end up in $ARGV[0]" + me too i got spaces and I end up in $ARGV[0] me too