in reply to Win32 File Path problem

From the File::DosGlob documentation:

If you want to put in literal spaces in the glob pattern, you can escape them with either double quotes, or backslashes. e.g. glob('c:/"Program Files"/*/*.dll'), or glob('c:/Program\ Files/*/*.dll').

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Win32 File Path problem
by PerlingTheUK (Hermit) on Nov 25, 2005 at 11:17 UTC
    I know, but I did not know that the escaped forward slashed quotemeta inserts are not supported by DosGlob. I have replaced quotemeta with  $s =~ s/\ /\\ /g; and it works fine now.
    Thanks for the help.

    Cheers,
    PerlingTheUK