Subject: | allow strings for type defs, in addition to constants |
I recently got a strange error with Params::Validate 0.74. It included this string:
... was a 'hashref', which is not one of the allowed types: at .....
What I had in my code was this:
my ($in) = validate_pos(@_, { type => 'HASHREF' } );
If you notice, you'll see that I put single quotes around 'HASHREF'. Params ::Validate should have either worked gracefully with this (my preference!), or rejected it as an invalid syntax.
Thanks,
Mark