blib/lib/Acme/FIREXFLY/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::FIREXFLY::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::FIREXFLY::Utils - Chapter 21 exercise from the book 'Intermediate Perl'
10  
11 =head1 VERSION
12  
13 Version 0.04
14  
15 =cut
16  
17 2 our $VERSION = '0.04';
18  
19  
20 =head1 SYNOPSIS
21  
22 Pracice creating a module and uploading to CPAN.
23  
24 Use the sum method to calculate the sum of the passed in values:
25  
26 use Acme::FIREXFLY::Utils;
27  
28 my $foo = Acme::FIREXFLY::Utils::sum( 1, 2, 3 );
29  
30  
31 =head1 SUBROUTINES/METHODS
32  
33 =head2 sum( LIST )
34  
35 Calculates sum of input
36  
37 =cut
38  
39 2 ▶sub sum {
Subroutine sum: called CC=2 SCAR=6.9
Pod documented
40 2 my $sum = 0;
41 2 $sum += $_ for @_;
42 2 $sum;
43  
44 }
45  
46 =head1 AUTHOR
47  
48 firexfly, C<< <code at firexfly.com> >>
49  
50 =head1 BUGS
51  
52 Please report any bugs or feature requests to C<bug-acme-firexfly-utils at rt.cpan.org>, or through
53 the web interface at L<https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-FIREXFLY-Utils>. I will be notified, and then you'll
54 automatically be notified of progress on your bug as I make changes.
55  
56  
57  
58  
59 =head1 SUPPORT
60  
61 You can find documentation for this module with the perldoc command.
62  
63 perldoc Acme::FIREXFLY::Utils
64  
65  
66 You can also look for information at:
67  
68 =over 4
69  
70 =item * RT: CPAN's request tracker (report bugs here)
71  
72 L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-FIREXFLY-Utils>
73  
74 =item * AnnoCPAN: Annotated CPAN documentation
75  
76 L<http://annocpan.org/dist/Acme-FIREXFLY-Utils>
77  
78 =item * CPAN Ratings
79  
80 L<https://cpanratings.perl.org/d/Acme-FIREXFLY-Utils>
81  
82 =item * Search CPAN
83  
84 L<https://metacpan.org/release/Acme-FIREXFLY-Utils>
85  
86 =back
87  
88  
89 =head1 ACKNOWLEDGEMENTS
90  
91  
92 =head1 LICENSE AND COPYRIGHT
93  
94 Copyright 2018 firexfly.
95  
96 This program is free software; you can redistribute it and/or modify it
97 under the terms of the the Artistic License (2.0). You may obtain a
98 copy of the full license at:
99  
100 L<http://www.perlfoundation.org/artistic_license_2_0>
101  
102 Any use, modification, and distribution of the Standard or Modified
103 Versions is governed by this Artistic License. By using, modifying or
104 distributing the Package, you accept this license. Do not use, modify,
105 or distribute the Package, if you do not accept this license.
106  
107 If your Modified Version has been derived from a Modified Version made
108 by someone other than you, you are nevertheless required to ensure that
109 your Modified Version complies with the requirements of this license.
110  
111 This license does not grant you the right to use any trademark, service
112 mark, tradename, or logo of the Copyright Holder.
113  
114 This license includes the non-exclusive, worldwide, free-of-charge
115 patent license to make, have made, use, offer to sell, sell, import and
116 otherwise transfer the Package with respect to any patent claims
117 licensable by the Copyright Holder that are necessarily infringed by the
118 Package. If you institute patent litigation (including a cross-claim or
119 counterclaim) against any party alleging that the Package constitutes
120 direct or contributory patent infringement, then this Artistic License
121 to you shall terminate on the date that such litigation is filed.
122  
123 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
124 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
125 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
126 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
127 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
128 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
129 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
130 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
131  
132  
133 =cut
134  
135 2 1; # End of Acme::FIREXFLY::Utils
↑ Summary