in reply to Re^2: subroutine reference parameters
in thread subroutine reference parameters

OK, but ($key) = is not scalar context.