blib/lib/Acme/CPANModules/Unbless.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 4 / 4 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary
1 package Acme::CPANModules::Unbless;
2  
3 1 our $DATE = '2019-01-09'; # DATE
4 1 our $VERSION = '0.001'; # VERSION
5  
6 1 our $LIST = {
7 summary => 'Unblessing a reference',
8 description => <<'_',
9  
10 Blessing a reference is easy with `bless()` but surprisingly (or
11 unsurprisingly?) unblessing a blessed reference is not as simple. Currently you
12 can use the `unbless()` function from <pm:Data::Structure::Util> or `damn()`
13 from <pm:Acme::Damn> (which is a slimmer module if you just need unblessing
14 feature). Both are XS modules. If you need a pure-Perl solution, currently
15 you're out of luck. <pm:Function::Fallback::CoreOrPP> provides `unbless()` where
16 the fallback option is shallow copying.
17  
18 _
19 entries => [
20 {
21 module => 'Data::Structure::Util',
22 },
23 {
24 module => 'Acme::Damn',
25 },
26 {
27 module => 'Function::Fallback::CoreOrPP',
28 },
29 ],
30 };
31  
32 1 1;
33 # ABSTRACT: Unblessing a reference
34  
35 __END__
↑ Summary