in reply to Re: Using eval to s/// with a pattern supplied on the command-line
in thread Using eval to s/// with a pattern supplied on the command-line
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. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using eval to s/// with a pattern supplied on the command-line
by ChrisS (Monk) on Mar 17, 2005 at 16:25 UTC |