Acme/SGABRIEL/Utils.pm

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