in reply to Hash/Array of Regular Expressions?
OK, so the replies show a number of ways of doing this.
Now suppose I wanted to do the same thing, but I wanted to have an array of substitutions (i.e. s/something/something_else/) instead of just matches.
Putting s/// in the array doesn't work because it executes the substitution at the point where the array is defined - I guess I need a quoting operator equivalent to s///...