It's kindof unfortunate that `state` behaves in this manner, as it isn't actually very useful. What you describe is exactly what C calls a `static` variable. Because it isn't lexical, nor is it dynamic. It exists exactly once. I actually wonder whether the keyword "static" should be used here. In any case, it's ~trivial to implement that as a CPAN module as a pluggable keyword. So I'd suggest someone go do that first, and we'll see how it goes. -- Paul "LeoNerd" Evans leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/Thread Previous | Thread Next