in reply to Re^5: How to replace spaces with different chars?
in thread How to replace spaces with different chars?

Ken, I'm not sure where this misunderstanding comes from.

First of all I already said that replacing whitespace with a character-class for globbing is the best of all solutions.

Regarding TMTOWTDI from perlglossary

> TMTOWTDI There’s More Than One Way To Do It, the Perl Motto. The notion that there can be more than one valid path to solving a programming problem in context. (This doesn’t mean that more ways are always better or that all possible paths are equally desirable—just that there need not be One True Way.)

My "disagreement" is, that using the build-in glob is "the one true way".

There are exceptions, where running an external command can be desirable. For instance is the regex engine of unix-grep often far more performant, IIRC.

And I'm not educating you, I'm providing information for all potential future readers.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^6: How to replace spaces with different chars?