The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Acme::CPANModules::PERLANCAR::Unbless - Unblessing a reference

VERSION

This document describes version 0.002 of Acme::CPANModules::PERLANCAR::Unbless (from Perl distribution Acme-CPANModulesBundle-PERLANCAR), released on 2018-06-11.

DESCRIPTION

Unblessing a reference.

Blessing a reference is easy with bless() but surprisingly (or unsurprisingly?) unblessing a blessed reference is not as simple. Currently you can use the unbless() function from Data::Structure::Util or damn() from Acme::Damn (which is a slimmer module if you just need unblessing feature). Both are XS modules. If you need a pure-Perl solution, currently you're out of luck. Function::Fallback::CoreOrPP provides unbless() where the fallback option is shallow copying.

INCLUDED MODULES

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Acme-CPANModulesBundle-PERLANCAR.

SOURCE

Source repository is at https://github.com/perlancar/perl-Acme-CPANModulesBundle-PERLANCAR.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModulesBundle-PERLANCAR

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Acme::CPANModules - about the Acme::CPANModules namespace

cpanmodules - CLI tool to let you browse/view the lists

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by perlancar@cpan.org.

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