File Coverage

blib/lib/Acme/AXP/Utils.pm
Criterion Covered Total %
statement 8 11 72.7
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Acme::AXP::Utils;
2            
3 1     1   16127 use 5.006;
  1         2  
4 1     1   4 use strict;
  1         2  
  1         15  
5 1     1   3 use warnings;
  1         5  
  1         80  
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             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             sub sum {
36 0     0 1   my $tot = 0;
37 0           $tot += $_ foreach ( @_ );
38 0           return $tot;
39             }
40            
41             =head1 AUTHOR
42            
43             Alex P, C<< >>
44            
45             =head1 BUGS
46            
47             Please report any bugs or feature requests to C, or through
48             the web interface at L. 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
64            
65             =item * AnnoCPAN: Annotated CPAN documentation
66            
67             L
68            
69             =item * CPAN Ratings
70            
71             L
72            
73             =item * Search CPAN
74            
75             L
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
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             1; # End of Acme::AXP::Utils