State variable lifecycle when subroutine invoked via goto &sub
The goal is to determine the exact lifetime of a Perl 'state' variable when its containing subroutine is invoked repeatedly with 'goto &sub' instead of a normal call. According to the documentation, a 'state' variable lives as long as the subroutine's symbol table remains loaded, and is freed when that symbol table is unloaded or the interpreter exits. H