# New Ticket Created by Zoffix Znet # Please include the string: [perl #128684] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128684 >
The EVAL as a sub shows an error message about MONKEY-SEE-NO-EVAL: m: my $x = 'say "hello"'; EVAL "$x" rakudo-moar 58dc8c: OUTPUT«===SORRY!=== Error while compiling <tmp>EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,but only if you're VERY sure your data contains no injection attacks)at <tmp>:1------> my $x = 'say "hello"'; EVAL "$x"…» However, if the method form of EVAL is used, no such error is generated: m: my $x = 'say "hello"'; "$x".EVAL rakudo-moar 58dc8c: OUTPUT«hello» Expected behaviour: both versions show the error. -- Cheers, ZZ | https://twitter.com/zoffix