Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

overloading

Name overloading
Version 0.02
Located at /usr/share/perl5
File /usr/share/perl5/overloading.pm
Is Core Yes
Search CPAN for this module overloading
Documentation overloading
Module Details overloading

NAME

overloading - perl pragma to lexically control overloading


SYNOPSIS

    {
        no overloading;
        my $str = "$object"; # doesn't call stringification overload
    }
    # it's lexical, so this stringifies:
    warn "$object";
    # it can be enabled per op
    no overloading qw("");
    warn "$object";
    # and also reenabled
    use overloading;


DESCRIPTION

This pragma allows you to lexically disable or enable overloading.

no overloading
Disables overloading entirely in the current lexical scope.

no overloading @ops
Disables only specific overloads in the current lexical scope.

use overloading
Reenables overloading in the current lexical scope.

use overloading @ops
Reenables overloading only for specific ops in the current lexical scope.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024