Actually, if you want to allow backreferences, it will still require an eval. And, really, security is one thing for random users doing nasty things (especially, but not particularly limited to, CGI), but sometimes you just want the power of perl (and its regexp engine) made trivially simple at the commandline. I think this is one of the latter cases. ;-)
In reply to Re^2: Using eval to s/// with a pattern supplied on the command-line
by Tanktalus
in thread Using eval to s/// with a pattern supplied on the command-line
by ChrisS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |