Description

How can I overload the build in array type? (#17)

perl overload provides functionality for operators:

    use overload
        '+' => \&myadd,
        '-' => \&mysub;
        # etc
    ...

is there a similar module to overload the classes of build in types (like array), something like:

    use typeoverload
        '@' => 'My::Array',
        '%' => 'My::Hash';
        # etc
    ...

usenet thread

Changes

Change History

Changed 3 years ago by lazaridis_com

  • description modified (diff)