in reply to Re^4: Is it safe to use external strings for regexes?
in thread Is it safe to use external strings for regexes?
> just made it smarter ... without needing the "use re 'eval'":
hm, we seem to be talking about different things
please compare these threads
- Re: Vulnerabilities when editing untrusted code... (Komodo)
- Perl 5.17 change to use re 'eval' breaks Acme::EyeDrops
Both examples don't include any variables but rely on concats aka .
In detail: Some optimizer converted this
- ''=~ ( '(?{B' . 'EGIN{print "owned"}})' )
- ''=~ '(?{BEGIN{print "owned"}})'
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Is it safe to use external strings for regexes?
by dave_the_m (Monsignor) on Oct 08, 2021 at 07:01 UTC | |
by LanX (Saint) on Oct 08, 2021 at 10:01 UTC |
In Section
Seekers of Perl Wisdom