You would need to use Extended Patterns to accomplish this I think. eg.
if ( 'asdf' =~ /(?$icase)$str/ ) { print "it works!\n" }See the perlre document for full details.
In reply to Re: Can you use a scaler as an operator?
by hippo
in thread Can you use a scaler as an operator?
by jar00n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |