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;
In reply to Re: Security with /ee modifier
by nobull
in thread Security with /ee modifier
by richard5mith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |