in reply to Re: Assessing the complexity of regular expressions
in thread Assessing the complexity of regular expressions
I like that idea, but it's not really safe, what with code blocks inside of regular expressions these days.
use re 'debug'; my $x = qr/a(??{ BEGIN { die } })/; __END__ Compiling REx "a(??{ BEGIN{ die } })" panic: top_env
Tests with code other than die also shows the BEGIN block being executed even though the regular expression is never used.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assessing the complexity of regular expressions
by mr_mischief (Monsignor) on Jan 27, 2009 at 19:49 UTC | |
by kyle (Abbot) on Jan 27, 2009 at 20:19 UTC | |
|
Re^3: Assessing the complexity of regular expressions
by tilly (Archbishop) on Jan 27, 2009 at 20:04 UTC |