> Note that you can't overload constants this way, since this has to
> happen during BEGIN time, but attributes are only evaluated at CHECK
> time (at least as far as `Attribute::Handlers' is concerned).
Not so. At least not as of the next release.
Grab the beta from:
NAME
Attribute::Overload - Attribute that makes overloading easier
SYNOPSIS
use Attribute::Overload;
sub add : Overload(+) { ... }
DESCRIPTION
The `Overload' attribute, when used on a subroutine, declares that
subroutine as handler in the current package for the operation