in reply to Security with /ee modifier
If all you want to allow is backreferences, all you need is 1 eval, something like (untested):
my %backrefs; my( @backrefs ) = $with =~ /\$(\d+)/g; if ($modifiers =~ /g/) { $value =~ s/$this/ no strict 'refs'; @backrefs{@backrefs} = map { ${$_} } @backrefs +; my $ret = $with; $ret =~ s'\$(\d+)'$backrefs{$1}'g; undef %backrefs; $ret; /ge; } else { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Security with /ee modifier
by richard5mith (Beadle) on Sep 26, 2004 at 15:32 UTC | |
by merlyn (Sage) on Sep 26, 2004 at 15:48 UTC | |
by PodMaster (Abbot) on Sep 26, 2004 at 15:55 UTC | |
by richard5mith (Beadle) on Sep 26, 2004 at 16:00 UTC |