Did you try it with use strict; use warnings;?
Either would give you some significant hints.
In reply to Re: hash as subroutine argument by ww in thread hash as subroutine argument by Anonymous Monk