File Coverage

blib/lib/Acme/CPANModules/Unbless.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Acme::CPANModules::Unbless;
2              
3 1     1   349105 use strict;
  1         1  
  1         99  
4              
5             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6             our $DATE = '2023-10-31'; # DATE
7             our $DIST = 'Acme-CPANModules-Unbless'; # DIST
8             our $VERSION = '0.002'; # VERSION
9              
10             our $LIST = {
11             summary => 'List of modules to unbless a reference',
12             description => <<'_',
13              
14             Blessing a reference is easy with `bless()` but surprisingly (or
15             unsurprisingly?) unblessing a blessed reference is not as simple. Currently you
16             can use the `unbless()` function from or `damn()`
17             from (which is a slimmer module if you just need unblessing
18             feature). Both are XS modules. If you need a pure-Perl solution, currently
19             you're out of luck. provides `unbless()` where
20             the fallback option is shallow copying.
21              
22             _
23             entries => [
24             {
25             module => 'Data::Structure::Util',
26             },
27             {
28             module => 'Acme::Damn',
29             },
30             {
31             module => 'Function::Fallback::CoreOrPP',
32             },
33             ],
34             };
35              
36             1;
37             # ABSTRACT: List of modules to unbless a reference
38              
39             __END__