[Israel.pm] how do I specify a pathname with spaces on win32

Yuval Yaari yuval at windax.com
Mon Sep 27 05:17:14 PDT 2004

Uri Itscowits said:
> I fail to run a cmd using system:
> system("c:\some spaced cmdname")

You should try:
system('"c:\some spaced cmdname"');

> the result is "c:\some" not found !

Obviously this is not a Perl problem but a problem with your shell (if you
can call that cmd thing a shell...).

> In case it wasn't clear, I am doing it on MS-windows ( to my surprise
> too).

Sorry to hear that... Stay strong.


More information about the Perl mailing list