blib/lib/Acme/AXP/Utils.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 2 SCAR 3.4
CC
2
Cov
100%
sum
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1 package Acme::AXP::Utils;
2
3 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 =head1 NAME
8
9 Acme::AXP::Utils - Exercises for Intermediate Perl, 2nd Edition, Chapter 21
10
11 =head1 VERSION
12
13 Version 0.06
14
15 =cut
16
17 2 our $VERSION = '0.06';
18
19 =head1 SYNOPSIS
20
21 I'm pretty sure that the naming scheme for this module breaks the rules that brian d foy himself
22 indicated in https://pause.perl.org/pause/query?ACTION=pause_namingmodules, but I'm only following
23 instructions.
24
25 =head1 EXPORT
26
27 =head1 SUBROUTINES/METHODS
28
29 =head2 sum
30
31 Add a bunch of numbers. Definitely don't multiply them.
32
33 =cut
34
35 8 ▶sub sum {
Subroutine sum: called CC=2 SCAR=6.9
Pod documented
36 8 my $tot = 0;
37 8 $tot += $_ foreach ( @_ );
38 8 return $tot;
39 }
40
41 =head1 AUTHOR
42
43 Alex P, C<< <axp-pause at mailinator.com> >>
44
45 =head1 BUGS
46
47 Please report any bugs or feature requests to C<bug-acme-axp-utils at rt.cpan.org>, or through
48 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-AXP-Utils>. I will be notified, and then you'll
49 automatically be notified of progress on your bug as I make changes.
50
51 =head1 SUPPORT
52
53 You can find documentation for this module with the perldoc command.
54
55 perldoc Acme::AXP::Utils
56
57 You can also look for information at:
58
59 =over 4
60
61 =item * RT: CPAN's request tracker (report bugs here)
62
63 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-AXP-Utils>
64
65 =item * AnnoCPAN: Annotated CPAN documentation
66
67 L<http://annocpan.org/dist/Acme-AXP-Utils>
68
69 =item * CPAN Ratings
70
71 L<http://cpanratings.perl.org/d/Acme-AXP-Utils>
72
73 =item * Search CPAN
74
75 L<http://search.cpan.org/dist/Acme-AXP-Utils/>
76
77 =back
78
79 =head1 ACKNOWLEDGEMENTS
80
81 =head1 LICENSE AND COPYRIGHT
82
83 Copyright 2017 Alex P.
84
85 This program is free software; you can redistribute it and/or modify it
86 under the terms of the the Artistic License (2.0). You may obtain a
87 copy of the full license at:
88
89 L<http://www.perlfoundation.org/artistic_license_2_0>
90
91 Any use, modification, and distribution of the Standard or Modified
92 Versions is governed by this Artistic License. By using, modifying or
93 distributing the Package, you accept this license. Do not use, modify,
94 or distribute the Package, if you do not accept this license.
95
96 If your Modified Version has been derived from a Modified Version made
97 by someone other than you, you are nevertheless required to ensure that
98 your Modified Version complies with the requirements of this license.
99
100 This license does not grant you the right to use any trademark, service
101 mark, tradename, or logo of the Copyright Holder.
102
103 This license includes the non-exclusive, worldwide, free-of-charge
104 patent license to make, have made, use, offer to sell, sell, import and
105 otherwise transfer the Package with respect to any patent claims
106 licensable by the Copyright Holder that are necessarily infringed by the
107 Package. If you institute patent litigation (including a cross-claim or
108 counterclaim) against any party alleging that the Package constitutes
109 direct or contributory patent infringement, then this Artistic License
110 to you shall terminate on the date that such litigation is filed.
111
112 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
113 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
114 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
115 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
116 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
117 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
118 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
119 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
120
121 =cut
122
123 2 1; # End of Acme::AXP::Utils
↑ Summary