Passing hash as an array ref