in reply to Reading DIR content and printing it
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading DIR content and printing it
by manishrathi (Beadle) on Jul 17, 2011 at 10:59 UTC | |
by Corion (Patriarch) on Jul 17, 2011 at 11:36 UTC | |
by happy.barney (Friar) on Jul 17, 2011 at 11:20 UTC |