in reply to Re^2: Transferring local hashes to module subroutines
in thread Transferring local hashes to module subroutines

The problem is in the line my (%hash,$scalar) = @_ This is not going to work ("passing both in one go"). See Passing hash and hashref to sub for a recent discussion on the topic. As usual there are more solutions to the problem. I would advice to use a hashref.