in reply to Security with /ee modifier
It's wrong (even assuming $with can be trusted not to be malicious). It breaks even if $with contains an innocent closing brace. If you want to do this it's more resilient with a here doc.s/$this/qq{qq{$with}}/eeg;
s{$this}{ chop( my $r = eval "<<_END_\n$with\n_END_" ); die $@ if $@; $r; }eg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Security with /ee modifier
by gaal (Parson) on Oct 04, 2004 at 16:28 UTC | |
by bart (Canon) on Oct 05, 2004 at 05:48 UTC | |
by gaal (Parson) on Oct 05, 2004 at 07:43 UTC | |
|
Re^2: Security with /ee modifier
by ihb (Deacon) on Oct 04, 2004 at 17:13 UTC |