Did the variable names `$arr` and `$hash1` get transposed?