It can be done without the EVAL:

> any('a', 'b', 'c').raku.substr(4, *-1).split(',').elems
3

On Mon, May 24, 2021 at 1:07 PM Daniel Sockwell <dan...@codesections.com>
wrote:

> > But .EVAL is evil, right?
>
> Indeed!  And
>     any('a', 'b', 'c').raku.substr(3).EVAL.elems;
> arguably deserves _extra_ evil points for using the .EVAL method which,
> unlike the
> EVAL sub, doesn't even warn about how dangerous it is (even though it
> probably should).
>


-- 
Fernando Santagata

Reply via email to