Sorry, I have to disagree.
For numerous reasons it's best practice not to shell out for something which can be done inside Perl. (portability, performance, maintenance, security, ...)
It's even a bit worse, because ls is useless, if you just need the shell's globbing.
TMTOWTDI only covers this, if there is a good reason.
Anyway, let me point you to older discussions instead of reiterating the reasons °
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) thanks to eyepops++ for keeping this listed in his homenode! :)
In reply to Re^4: How to replace spaces with different chars?
by LanX
in thread How to replace spaces with different chars?
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |