For creating the regex object it helps to use the qr{...} quoting construct:
my $re = qr{^yikes}i; your_sub($re, $other, $arguments);
In reply to Re: passing regular expression
by moritz
in thread passing regular expression
by karthikasasanka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |