blib/lib/PerlMongers/MadMongers.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
members
2.0
website
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package PerlMongers::MadMongers;
4 $PerlMongers::MadMongers::VERSION = '0.0001';
5 =head1 NAME
6  
7 PerlMongers::MadMongers - Madison Wisconsin Area Perl Mongers
8  
9 =head1 VERSION
10  
11 version 0.0001
12  
13 =head1 SYNOPSIS
14  
15 use PerlMongers::MadMongers;
16  
17 my $mm = PerlMongers::MadMongers->new;
18  
19 say join(',' @{$mm->members});
20  
21 say $mm->website;
22  
23 say $mm->add_values(1,2,3,4);
24  
25  
26 =head1 DESCRIPTION
27  
28 This is a set of utilities for the local Madison Perl Mongers group.
29  
30  
31 =head1 METHODS
32  
33 =head2 new()
34  
35 Constructor.
36  
37 =cut
38  
39 sub new {
40 my $class = shift;
41 bless {}, $class;
42 }
43  
44 =head2 members()
45  
46 Returns an array reference of the first names of the people who showed up on 2016-04-12.
47  
48 =cut
49  
50 sub members {
51 return [qw(Timm JT Steve Dave Jim Rob Matt Ken Doc)];
52 }
53  
54 =head2 website()
55  
56 Returns the URL string of our web site.
57  
58 =cut
59  
60 sub website {
61 return 'http://www.madmongers.org';
62 }
63  
64 =head2 add_values(value1, value2, ...)
65  
66 Takes a list of values and returns their sum.
67  
68 =over
69  
70 =item value1
71  
72 A number you want to add.
73  
74 =item value2
75  
76 Another number to add to C<value1>.
77  
78 =item ...
79  
80 And so on.
81  
82 =back
83  
84 =cut
85  
86 sub add_values {
87 my ($self, @values) = @_;
88 my $sum = 0;
89 foreach my $value (@values) {
90 $sum += $value;
91 }
92 return $sum;
93 }
94  
95 =head1 COPYRIGHT
96  
97 Licensed under the same terms as Perl itself.
98  
99 =cut
100  
101 1;