Or you could use a qr construct. See man perlop for details.if ($var =~ "pattern") { .. }
In reply to Re: How to pass regular expression as variable ?
by JavaFan
in thread How to pass regular expression as variable ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |