in reply to Re^2: Can "delayed-regex assertions" be nested...
in thread Can "delayed-regex assertions" be nested...
As a programmer it's your job to tell him otherwise.
If possible create an example that segfaults (for example try some fun with closures inside the block), and show that to your client ;-)
Precomputing the most inner block gives the same result.
Then you have to unroll one more level:
!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @A = ( "ab", "abcd", "f" ); my %H = ( 'ab' => 0, 'abcd' => 1, #'def' => 2, ); my $re_inner = join( '|', @A); my $re_outer = join '|', grep /$re_inner/gi, keys %H; my @B = grep ( !/$re_outer/gi, @A ); print Dumper(\@B);
Disclaimer: I haven't actually understood what you try to achieve, maybe there's a better solution altogether.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can "delayed-regex assertions" be nested...
by ddn123456 (Pilgrim) on Feb 21, 2008 at 12:39 UTC | |
by ddn123456 (Pilgrim) on Feb 21, 2008 at 13:41 UTC |