info > Class::MOP::Overload

📖 NAME

Class::MOP::Overload - Overload Meta Object

🚀 Quick Reference

Use Case Command Description
Create Overload Object Class::MOP::Overload->new(%options) Creates a new overload meta object.
Get Overloaded Operator $meta->get_overloaded_operator('+') Returns a Class::MOP::Overload object for the given operator.
Check Method Name $overload->has_method_name Returns true if a method name is defined.
Get Method Name $overload->method_name Returns the method name implementing the overload.
Clone Overload Object $overload->clone Clones the overloading object, setting original_overload.

📌 VERSION

version 2.2200

🔰 SYNOPSIS

my $meta     = Class->meta;
my $overload = $meta->get_overloaded_operator('+');

if ( $overload->has_method_name ) {
    print 'Method for + is ', $overload->method_name, "\n";
}
else {
    print 'Overloading for + is implemented by ',
        $overload->coderef_name, " sub\n";
}

📝 DESCRIPTION

This class provides meta information for overloading in classes and roles.

🧬 INHERITANCE

Class::MOP::Overload is a subclass of Class::MOP::Object.

⚙️ METHODS

📇 Class::MOP::Overload->new(%options)

This method creates a new Class::MOP::Overload object. It accepts a number of options:

🧰 Instance Methods

👥 AUTHORS

📄 COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Class::MOP::Overload
📖 NAME 🚀 Quick Reference 📌 VERSION 🔰 SYNOPSIS 📝 DESCRIPTION 🧬 INHERITANCE ⚙️ METHODS
📇 Class::MOP::Overload->new(%options) 🧰 Instance Methods
👥 AUTHORS 📄 COPYRIGHT AND LICENSE

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 20:40 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!