The backslash is special within strings. See perlop. If you had run your code with warnings enabled, Perl would have told you so:
Unrecognized escape \A passed through at -e line 1. Unrecognized escape \D passed through at -e line 1. Unrecognized escape \S passed through at -e line 1.
Either properly escape the backslash (see perlop, or use forward slashes to separate the directories.
In reply to Re: Reading DIR content and printing it
by Corion
in thread Reading DIR content and printing it
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |