On Sep 26, 2008, at 18:48, Eric Wilhelm wrote:
I would rather it just be a hash. The ({}) thing is redundant.
You mean you'd rather it be a list. I agree, but it needs to be a hashref in order to disambiguate it from the original calling syntax, in order to maintain backward compatibility.
So, $name is required, and if what's left is an even number, it's a hash. If it's odd, $default = shift(@_).
Hrm. Okay, that works, too. Best, David