line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::PM::Chicago; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Acme::PM::Chicago - Functions useful for the Chicago.pm group |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 VERSION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Version 0.01 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
We here in Chicago.PM have the monthly problem of how to give away |
18
|
|
|
|
|
|
|
books. Names from a hat? Bizarre statistical extraction from |
19
|
|
|
|
|
|
|
Lembark? Who can tell? We decided once and for all to have ONE |
20
|
|
|
|
|
|
|
WAY to do it. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
1239
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
57
|
|
25
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
|
7
|
use Exporter; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
308
|
|
28
|
|
|
|
|
|
|
our @ISA = qw( Exporter ); |
29
|
|
|
|
|
|
|
our @EXPORT = qw( lembark lester ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 FUNCTIONS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 lembark() |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Returns a random saying of Steven Lembark. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub lembark { |
40
|
1
|
|
|
1
|
1
|
604
|
my @sayings = ( |
41
|
|
|
|
|
|
|
"Have you seen Acme::Bleach?", |
42
|
|
|
|
|
|
|
"Use FindBin::lib", |
43
|
|
|
|
|
|
|
"Do you want me to talk about Quantum::Superpositions?", |
44
|
|
|
|
|
|
|
); |
45
|
|
|
|
|
|
|
|
46
|
1
|
|
|
|
|
59
|
return $sayings[rand @sayings]; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 lester() |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Get a lesterism |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub lester { |
56
|
1
|
|
|
1
|
1
|
886
|
my @sayings = ( |
57
|
|
|
|
|
|
|
"Have you tested lately?", |
58
|
|
|
|
|
|
|
"vim is the one true editor", |
59
|
|
|
|
|
|
|
"h2xs sucks", |
60
|
|
|
|
|
|
|
"If I were king...", |
61
|
|
|
|
|
|
|
"At Follett, the way we do it...", |
62
|
|
|
|
|
|
|
"See Hack #21 in Spidering Hacks", |
63
|
|
|
|
|
|
|
); |
64
|
1
|
|
|
|
|
6
|
return $sayings[rand @sayings]; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 random_name |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Gets a list of names, and then passes back one at random. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
sub random_name { |
74
|
0
|
|
|
0
|
1
|
|
my @names = @_; |
75
|
|
|
|
|
|
|
|
76
|
0
|
|
|
|
|
|
return $names[rand @names]; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |