in reply to Re: Making a variable in a sub retain its value between calls
in thread Making a variable in a sub retain its value between calls

It is documented. It is documented as being undefined behaviour, which is even less reliable than undocumented.
  • Comment on Re^2: Making a variable in a sub retain its value between calls