in reply to How do you tell if a sub argument is an lvalue?
use Scalar::Util::readonly() on your variables.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊