You're repeating that interpolation on every trip through the loop, when you could be using qr// to compile your regex once and then forget about it.
The /o flag on the regex will also work without requiring him to create a regex scalar with qr//.
In reply to Re: Re: Character class in an array
by Fastolfe
in thread Character class in an array
by nikto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |