line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::NameGen; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
14244
|
use 5.006; |
|
1
|
|
|
|
|
2
|
|
4
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
5
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
65
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.010000'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4
|
use vars qw($VERSION @EXPORT_OK); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
216
|
|
10
|
|
|
|
|
|
|
require Exporter; |
11
|
|
|
|
|
|
|
*import = \&Exporter::import; |
12
|
|
|
|
|
|
|
@EXPORT_OK = qw(gen gen_lc gen_uc); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my @adjectives = ( |
15
|
|
|
|
|
|
|
'admiring', 'adoring', 'affectionate', 'agitated', |
16
|
|
|
|
|
|
|
'amazing', 'angry', 'awesome', 'blissful', |
17
|
|
|
|
|
|
|
'boring', 'brave', 'clever', 'cocky', |
18
|
|
|
|
|
|
|
'compassionate', 'competent', 'condescending', 'confident', |
19
|
|
|
|
|
|
|
'cranky', 'dazzling', 'determined', 'distracted', |
20
|
|
|
|
|
|
|
'dreamy', 'eager', 'ecstatic', 'elastic', |
21
|
|
|
|
|
|
|
'elated', 'elegant', 'eloquent', 'epic', |
22
|
|
|
|
|
|
|
'fervent', 'festive', 'flamboyant', 'focused', |
23
|
|
|
|
|
|
|
'friendly', 'frosty', 'gallant', 'gifted', |
24
|
|
|
|
|
|
|
'goofy', 'gracious', 'happy', 'hardcore', |
25
|
|
|
|
|
|
|
'heuristic', 'hopeful', 'hungry', 'infallible', |
26
|
|
|
|
|
|
|
'inspiring', 'jolly', 'jovial', 'keen', |
27
|
|
|
|
|
|
|
'kind', 'laughing', 'loving', 'lucid', |
28
|
|
|
|
|
|
|
'mystifying', 'modest', 'musing', 'naughty', |
29
|
|
|
|
|
|
|
'nervous', 'nifty', 'nostalgic', 'objective', |
30
|
|
|
|
|
|
|
'optimistic', 'peaceful', 'pedantic', 'pensive', |
31
|
|
|
|
|
|
|
'practical', 'priceless', 'quirky', 'quizzical', |
32
|
|
|
|
|
|
|
'relaxed', 'reverent', 'romantic', 'sad', |
33
|
|
|
|
|
|
|
'serene', 'sharp', 'silly', 'sleepy', |
34
|
|
|
|
|
|
|
'stoic', 'stupefied', 'suspicious', 'tender', |
35
|
|
|
|
|
|
|
'thirsty', 'trusting', 'unruffled', 'upbeat', |
36
|
|
|
|
|
|
|
'vibrant', 'vigilant', 'vigorous', 'wizardly', |
37
|
|
|
|
|
|
|
'wonderful', 'xenodochial', 'youthful', 'zealous', |
38
|
|
|
|
|
|
|
'zen' |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub gen { |
42
|
6
|
|
|
6
|
1
|
9
|
my ( $adjective_element, $subjects, $subjects_element ) = @_; |
43
|
6
|
|
33
|
|
|
48
|
$adjectives[ $adjective_element || rand scalar @adjectives ] . '_' |
|
|
|
33
|
|
|
|
|
44
|
|
|
|
|
|
|
. $subjects->[ $subjects_element || rand scalar @$subjects ]; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
2
|
|
|
2
|
1
|
4
|
sub gen_lc { lc gen(@_) } |
48
|
|
|
|
|
|
|
|
49
|
2
|
|
|
2
|
1
|
6
|
sub gen_uc { uc gen(@_) } |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |