File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1428,11 +1428,11 @@ method EVAL(*%_)
1428
1428
= for code
1429
1429
sub EVAL($code where Cool|Blob, :$lang = 'perl6')
1430
1430
1431
- The method form calls subroutine form with invocant as C < $code > , passing
1432
- along named args, if any. Subroutine form coerces L < Cool > C < $code > to
1433
- L < Str > . If C < $code > is a L < Blob > , it'll be processed using the same
1434
- encoding as the C < $lang > compiler would: for C < perl6 > C < $lang > , uses C < utf-8 > ;
1435
- for C < Perl5 > , processes using the same rules as C < perl > .
1431
+ If it is invoked as a method, it actually calls the subroutine form with
1432
+ invocant as the first argument, C < $code > , passing along named args, if any; this
1433
+ coerces L < Cool > C < $code > to L < Str > . If C < $code > is a L < Blob > , it'll be processed
1434
+ using the same encoding as the C < $lang > compiler would: for C < perl6 > C < $lang > ,
1435
+ uses C < utf-8 > ; for C < Perl5 > , processes using the same rules as C < perl > .
1436
1436
1437
1437
This works as-is with a literal string parameter. More complex input,
1438
1438
such as a variable or string with embedded code, is illegal by default.
You can’t perform that action at this time.
0 commit comments