What's bad with a regex that has lots of alternative match patterns like the one below:
And relatedly, what is the more elegant way of accomplishing that sort of things?if ($string =~ /(new|old|number|start|simple|cross|heavy|die|exit)/i)
Thanks in advance :)
In reply to Alternative matches by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |