Keep It Simple, Stupid | |
PerlMonks |
Re: How to replace spaces with different chars?by kcott (Archbishop) |
on Jul 07, 2022 at 08:13 UTC ( [id://11145321]=note: print w/replies, xml ) | Need Help?? |
G'day ovedpo15, "How can I use the system instead?" With these paths:
And this code (find_file_match.pl):
You get this output:
Update: See ++LanX' valid comment regarding the inherent bug in the code I posted above. Changing y/ /?/ to s/ /[\\;:,-]/g fixes this. — Ken
In Section
Seekers of Perl Wisdom
|
|