however with a few hundred thousand lines to seach, and an array of a few hundred it is far too slow. Is there a more elegant solution? Many thanks.foreach (@typedefs){ if ($line=~ /$_/) { # perform various actions here if line match } }
In reply to line by line match on an array of strings by barryscott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |