After some hard times (work related, mainly), I happy to announce I seem to have got some tuits back. Here's what I did this evening, implementing a new keyword,
state, which is a Perl 6 thing and that appears in the
latest perltodo manpage.
$ bleadperl -Mfeature=state -wle 'sub f { state $x = 42; print $x++ } f; f; f'
42
43
44
This, of course, brand new and subject to change; more about that in David Landgren's next wonderful P5P summary!
Neat - See also (Score:1)
Re:Neat - See also (Score:2)