[Chapter 8] 8.124 re
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:51:37Z

#

| Chapter 8 Standard Modules |

## 8.124 re

Pragma that lets you alter the behavior of regular expressions. Permits the following alterations:

`use re 'debug'`

  Causes Perl to produce debugging messages when compiling and at run time when using regular expressions. See the re manpage and the section on "Debugging regular expressions" in the perldebug manpage for details.

`use re 'eval'`

  Permits a regular expression to contain `(?{...})` zero-width assertion even if the regular expression contains variable interpolation, which normally isn't permitted for security reasons. The pragma is ignored if the regular expression comes from tainted data.

`use re 'taint'`

  When a tainted string is the target of a regular expression, causes the regular expression memories (or the values returned by the `m//` operator in list context) to be tainted.

8.123 POSIX |  | 8.125 Safe