Perl 5.32 state keyword: recursion persistence ambiguity
In Perl 5.32 the state keyword is documented to create a lexical variable that retains its value across all calls to the enclosing subroutine, including recursive invocations. However, tests have shown that a state variable defined inside a recursive subroutine may reset to its initial value on each recursive layer. This discrepancy raises a question about t