s/foo/bar/ is not just a regular expression, it's a substitution operator. Storing it in a scalar and expecting it to work is going to be just as effective as storing $foo = "2+2" and expecing $bar = $foo to set $bar to 4. You want to
In reply to Re: Storing Regular Expressions as Strings in Array??
by Fletch
in thread Storing Regular Expressions as Strings in Array??
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |