Ted (>):
> Are state variables available now, or is the every(N) functionality
> possible in some other way now?

Why not try it by writing a small program? :)

Rakudo is available at a discount right now -- download it before it's
too late! -- and the syntax for state variables is the same as it's
always been. The one-liner to find out is shorter than your question:

$ perl6 -e 'sub foo { state $s = 0; say $s++ }; foo; foo; foo'
0
1
2

Regards,
// Carl

Reply via email to