in reply to Regex stored in a scalar

Feeding the regex in via STDIN seems a bit clunky. What about using command line options, e.g. -s "regex" -r "replacement" and see getopt for a wealth of option parsers to load in their arguments.

One world, one people