Runtime evaluation: Difference between revisions

m
Fix Perl 6 -> Raku in comments
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku in comments)
Line 1,395:
my ($a, $b) = (-5, 7);
my $ans = EVAL 'abs($a * $b)'; # => 35</lang>
Unlike in Perl 5, <tt>eval</tt> in Perl 6Raku only compiles and executes the string, but does not trap exceptions. You must say <tt>try eval</tt> to get that behavior (or supply a <tt>CATCH</tt> block within the text to be evaluated).
 
=={{header|REBOL}}==
10,327

edits