laziness, impatience, and hubris | |
PerlMonks |
Re: How to replace spaces with different chars?by LanX (Saint) |
on Jul 06, 2022 at 15:33 UTC ( [id://11145310]=note: print w/replies, xml ) | Need Help?? |
here a partial solution using glob But I don't know how to escape the "," appropriately ...°
output<Reveal this spoiler or all in this thread> °) one workaround may be to use a placeholder like "\0" which can't naturally appear and to replace it afterwards.
updatethe whole concept is dubious, because this will create far too many combinations. (Besides solving the original issue) it's better to check incrementally from left to right with wildcards, before progressing to the next position. my @part = </a/b/c/d/e/f{;,:,=,-}i*>; etc
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|