in reply to Re: glob operator problems
in thread glob operator problems

Or use bsd_glob from File::Glob. The only difference between the two is that bsd_glob doesn't treat spaces specially.

Ah. I was in windows hell. I need two backslashes so that the literal '\ ' is seen by perl? The shell?

That's undeserved Microsoft bashing. Not only does the shell not do what you say, it would actually be a good thing if it did!

No, the problem is with using an unescaped slash in double quotes.

Replies are listed 'Best First'.
Re^3: glob operator problems
by matze77 (Friar) on Jan 15, 2010 at 06:35 UTC
    I would not use "\" even on windows paths it makes the pathnames "ugly" id rather use perl syntax (Perl converts it to the systems needs): e.g.: c:/my/path/ ...

    Thanks
    MH

      You're wrong about Perl converting them. It passes paths to Windows unmodified. "/" works as a path separator because Windows accepts both "\" and "/" as path separators.