It's worth noting that the keys will be interpreted as regexes, which is not always what you want. If you don't want that, use
insteadmy $re = join '|', map { quotemeta $_ } keys %dict;
In reply to Re: regex s/// using hash
by moritz
in thread regex s/// using hash
by oha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |