sub foo { my $client = 'a.b'; my $re = eval shift; grep /$re/, @_; } foo(q{qr|<$client>|}, '<a.b>', '<asb>', '<abs>'); # ==> ('<a.b>', '<asb>')
In reply to Re: dynamic regex variable
by educated_foo
in thread dynamic regex variable
by lowone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |