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


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

This isn't perl specific, but I think it's helpful to know that many Windows APIs (including several Microsoft ones) do accept forward slashes as well.

Try

perl -e "print join ' ', glob 'C:/Windows/sys*'"
and enjoy :-)

Although this does not solve your original issue, perhaps it helps alleviate the problem at hand?

Replies are listed 'Best First'.
Re: backslashes sometimes unnecessary
by tobyink (Canon) on Jan 31, 2013 at 21:45 UTC

    IIRC all the old DOS APIs accepted "/" as path delimiters, it was just command.com itself that did not.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name