in reply to passing hash to subroutine

The only thing that can be passed to a function is a list of scalars. Solutions: