File Coverage

blib/lib/Acme/GLOINBG/Utils.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package Acme::GLOINBG::Utils;
2              
3 2     2   498284 use 5.006;
  2         9  
4 2     2   13 use strict;
  2         4  
  2         61  
5 2     2   16 use warnings;
  2         3  
  2         184  
6              
7             =head1 NAME
8              
9             Acme::GLOINBG::Utils - Utilities module for GLOINBG projects
10              
11             =head1 VERSION
12              
13             Version 0.06 Exercise 7, Fix the required modules in Build.PL
14              
15             =cut
16              
17             our $VERSION = '0.06';
18              
19              
20             =head1 SYNOPSIS
21              
22             Utilities module
23              
24             use Acme::GLOINBG::Utils;
25              
26             my $foo = Acme::GLOINBG::Utils->new();
27             ...
28              
29             =head1 EXPORT
30              
31             Functions that can be exported:
32             sum
33              
34             =head1 SUBROUTINES/METHODS
35              
36             =head2 sum( LIST )
37              
38             Numerically sums the argument list and returns the result.
39              
40             =cut
41              
42             sub sum {
43 2     2   9 no warnings 'numeric';
  2         3  
  2         170  
44 2     2 1 724 my $sum;
45 2         5 foreach ( @_ ) { $sum += $_ }
  17         20  
46 2         8 return $sum;
47             }
48              
49             =head1 AUTHOR
50              
51             Georgi Kolarov, C<< >>
52              
53             =head1 BUGS
54              
55             Please report any bugs or feature requests to C, or through
56             the web interface at L. I will be notified, and then you'll
57             automatically be notified of progress on your bug as I make changes.
58              
59              
60              
61              
62             =head1 SUPPORT
63              
64             You can find documentation for this module with the perldoc command.
65              
66             perldoc Acme::GLOINBG::Utils
67              
68              
69             You can also look for information at:
70              
71             =over 4
72              
73             =item * RT: CPAN's request tracker (report bugs here)
74              
75             L
76              
77             =item * CPAN Ratings
78              
79             L
80              
81             =item * Search CPAN
82              
83             L
84              
85             =back
86              
87              
88             =head1 ACKNOWLEDGEMENTS
89              
90              
91             =head1 LICENSE AND COPYRIGHT
92              
93             This software is Copyright (c) 2025 by Georgi Kolarov.
94              
95             This is free software, licensed under:
96              
97             The Artistic License 2.0 (GPL Compatible)
98              
99              
100             =cut
101              
102             1; # End of Acme::GLOINBG::Utils