File Coverage

blib/lib/Acme/GILLIGAN/Utils.pm
Criterion Covered Total %
statement 16 17 94.1
branch n/a
condition n/a
subroutine 5 6 83.3
pod 2 2 100.0
total 23 25 92.0


line stmt bran cond sub pod time code
1             package Acme::GILLIGAN::Utils;
2              
3 2     2   37001 use 5.006;
  2         9  
  2         82  
4 2     2   18 use strict;
  2         3  
  2         81  
5 2     2   10 use warnings FATAL => 'all';
  2         10  
  2         159  
6              
7             =head1 NAME
8              
9             Acme::GILLIGAN::Utils - The great new Acme::GILLIGAN::Utils!
10              
11             =head1 VERSION
12              
13             Version 0.01
14              
15             =cut
16              
17             our $VERSION = '0.02';
18              
19              
20             =head1 SYNOPSIS
21              
22             Quick summary of what the module does.
23              
24             Perhaps a little code snippet.
25              
26             use Acme::GILLIGAN::Utils;
27              
28             my $foo = Acme::GILLIGAN::Utils->new();
29             ...
30              
31             =head1 EXPORT
32              
33             A list of functions that can be exported. You can delete this section
34             if you don't export anything, such as for a purely object-oriented module.
35              
36             =head1 SUBROUTINES/METHODS
37              
38             =head2 sum
39              
40             Numerically sums the arg list and return result
41              
42             =cut
43              
44             sub sum {
45 2     2   10 no warnings 'numeric';
  2         4  
  2         232  
46 2     2 1 1190 my (@nums) = @_;
47            
48 2         4 my $total;
49 2         16 $total += $_ foreach (@nums);
50            
51 2         12 return $total;
52             }
53              
54             =head2 function2
55              
56             =cut
57              
58 0     0 1   sub function2 {
59             }
60              
61             =head1 AUTHOR
62              
63             Paul Cantalupo, C<< >>
64              
65             =head1 BUGS
66              
67             Please report any bugs or feature requests to C, or through
68             the web interface at L. I will be notified, and then you'll
69             automatically be notified of progress on your bug as I make changes.
70              
71              
72              
73              
74             =head1 SUPPORT
75              
76             You can find documentation for this module with the perldoc command.
77              
78             perldoc Acme::GILLIGAN::Utils
79              
80              
81             You can also look for information at:
82              
83             =over 4
84              
85             =item * RT: CPAN's request tracker (report bugs here)
86              
87             L
88              
89             =item * AnnoCPAN: Annotated CPAN documentation
90              
91             L
92              
93             =item * CPAN Ratings
94              
95             L
96              
97             =item * Search CPAN
98              
99             L
100              
101             =back
102              
103              
104             =head1 ACKNOWLEDGEMENTS
105              
106              
107             =head1 LICENSE AND COPYRIGHT
108              
109             Copyright 2014 Paul Cantalupo.
110              
111             This program is free software; you can redistribute it and/or modify it
112             under the terms of the the Artistic License (2.0). You may obtain a
113             copy of the full license at:
114              
115             L
116              
117             Any use, modification, and distribution of the Standard or Modified
118             Versions is governed by this Artistic License. By using, modifying or
119             distributing the Package, you accept this license. Do not use, modify,
120             or distribute the Package, if you do not accept this license.
121              
122             If your Modified Version has been derived from a Modified Version made
123             by someone other than you, you are nevertheless required to ensure that
124             your Modified Version complies with the requirements of this license.
125              
126             This license does not grant you the right to use any trademark, service
127             mark, tradename, or logo of the Copyright Holder.
128              
129             This license includes the non-exclusive, worldwide, free-of-charge
130             patent license to make, have made, use, offer to sell, sell, import and
131             otherwise transfer the Package with respect to any patent claims
132             licensable by the Copyright Holder that are necessarily infringed by the
133             Package. If you institute patent litigation (including a cross-claim or
134             counterclaim) against any party alleging that the Package constitutes
135             direct or contributory patent infringement, then this Artistic License
136             to you shall terminate on the date that such litigation is filed.
137              
138             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
139             AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
140             THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
141             PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
142             YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
143             CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
144             CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
145             EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146              
147              
148             =cut
149              
150             1; # End of Acme::GILLIGAN::Utils