http://www.perlmonks.org?node_id=1016398


in reply to Re: Single Quotes - how to avoid any escape processing?
in thread Single Quotes - how to avoid any escape processing?

Things get even worse when you windows path includes whitespace. (e.g. c:\Documents and Settings\.....). Windows requires quotes around the path. Those quotes must be part of the perl string. The section of documentation that you just cited has everything you need to know, but it is not easy.

Bill

Replies are listed 'Best First'.
Re^3: Single Quotes - how to avoid any escape processing?
by temporal (Pilgrim) on Jan 31, 2013 at 23:14 UTC

    Oh yeah, fun stuff. I think at that point I'd start using one of the path parsing/porting modules to handle it all.

    iirc File::Path and File::Basename intelligently handle paths with spaces on Windows.