This is my favorite way:
Some may call it obfuscated, but I think it's particularly clean.my $any = do { local $" = '|'; qr/@pats/; };
After Compline,
Zaxo
In reply to Re: Programmatic regex disjunction
by Zaxo
in thread Programmatic regex disjunction
by gaal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |