in reply to Re^3: perl one-liner doesn't autochomp input
in thread perl one-liner doesn't autochomp input
Don't require a space-delimited stream of filenames, or if you must, then properly handle all names by way of double-quoting and/or escaping.
Sure, you can put newlines in filenames on some filesystems, too, but it is *far* less prevalent. Spaces occur in user files (and system files) all the time, thanks to Win95 and MacOS guis which encourage human-descriptive filenames.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: perl one-liner doesn't autochomp input
by sintadil (Pilgrim) on Sep 07, 2004 at 17:51 UTC |