Sorry, but that doesn't work. The reason it doesn't work depends on the system.
On non-dosish systems, that will escape meta-characters that should remain meta-characters, such as *.
That means glob quotemeta $expr is the same as ''.$expr.
On dosish systems, that will insert characters that will be interpreted as directory separators.
On DOSISH systems, [...] backslashes (under GLOB_QUOTE) only quote the glob metacharacters '[', ']', '{', '}', '-', '~', and backslash itself. All other backslashes are passed through unchanged.
That means glob quotemeta 'c:/some dir/*.*' is the same as glob 'c:/some dir/*/.*'.
In reply to Re^3: Delete files with Perl in Windows
by ikegami
in thread Delete files with Perl in Windows
by whnwhrwhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |