4 ms·
Nope. This works as you'd expect in Perl: the replacement is treated as code and executed like an inline function, never eval'd.
by eevee 15y ago
Nope. This works as you'd expect in Perl: the replacement is treated as code and executed like an inline function, never eval'd.
- astrodust 15y agoIf you're implying that `/e` is more dangerous in PHP than in Perl, then that is truly terrifying.
- shabble 15y agoYep, that's why s///ee exists :) http://perldoc.perl.org/perlop.html#s/PATTERN/REPLACEMENT/msixpodualgcer http://perldoc.perl.org/perlop.html#s/PATTERN/REPLACEMENT/ms... "e Evaluate the right side as an expression. ee Evaluate the right side as a string then eval the result."