in reply to Re^2: Using Regexp Patterns as Variables
in thread Using Regexp Patterns as Variables

That's why I wrote this:

I can't say I recommend that, however, especially if you don't trust the source of your real $out.

Replies are listed 'Best First'.
Re^4: Using Regexp Patterns as Variables
by ikegami (Patriarch) on Mar 18, 2009 at 16:56 UTC

    There's no "if". $ENV{REQUEST_URI} is controlled by remote users.

    Even ignoring the evident trust issues, eval is simply not the right tool.

      Correct. However, since the regex patterns are stored in the DB, put there by trusted users, it is effectively the same as hard coding them (without having to). $ENV{REQUEST_URI} can be mucked with without any security issues (the replacement will just fail).