it's easier to read and to maintain, and I am sure you will not notice any speed lost, specially if you are going to access the files after it.foreach (@files) { process_file $_ if (/foo[34]\.txt$/i or /bar[12]\.txt$/i) }
In reply to Re: Regex Tuning
by salva
in thread Regex Tuning /(?:(?:foo[34])|(?:bar[12]))\.txt/io
by songahji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |