in reply to How to pass command line arguments with file names containing spaces
You need do nothing special inside Perl to handle it. Merely how you specify these files on the command line.
If you make system calls using these filenames (or other forms of external-to-Perl operations) you likely will again need to honor the needs of your operating system.
But for as long as you're inside Perl, doing native Perl stuff, it is unlikely the spaces will require you to change the way you handle your code.
C:\Test>perl mongo.pl "Test 1.dat" C:\Test>perl mongo.pl "Test *.dat" C:\Test>perl mongo.pl Test*.dat
All these should work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to pass command line arguments with file names containing spaces
by MVRS (Acolyte) on Oct 09, 2013 at 09:07 UTC | |
by Corion (Patriarch) on Oct 09, 2013 at 09:12 UTC | |
by MVRS (Acolyte) on Oct 09, 2013 at 09:30 UTC | |
by Corion (Patriarch) on Oct 09, 2013 at 09:36 UTC | |
by hdb (Monsignor) on Oct 09, 2013 at 09:25 UTC |