in reply to hash element error

You are giving 6 arguments to getData(). The first one ("UserId") you shift() into $self, the other 5(!!!) you assign to %Param.

Looks to me as if getData was designed to be a method, not a sub...


Search, Ask, Know