andprint "OK" if m((?i:var)=/bin);
The first is faster for building one RE. The second if you need a series of them.my $m_var = qr/var/i; print "OK" if m($m_var=/bin);
In reply to Re (tilly) 1: RegExps that are only partly case-insensitive
by tilly
in thread RegExps that are only partly case-insensitive
by dcorbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |