That will technically work. Semantically, however, this may lead to problems -- I think SOAP::Serializer relies on this technique to generate unique IDs for objects. If there are two such Error objects, SOAP::Serializer may get confused.
I will file a bug in Error.pm's CPAN page, however, as yours is a valid point.
in reply to Re: When numeric conversion overloading goes awry.
in thread When numeric conversion overloading goes awry.