line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::Word::Phraselist; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $DATE = '2016-02-05'; # DATE |
4
|
|
|
|
|
|
|
our $VERSION = '0.05'; # VERSION |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# currently implemented as a "quick hack", subclassed from |
7
|
|
|
|
|
|
|
# Games::Word::Wordlist, so all Wordlist methods are also there. |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
668
|
use 5.010001; |
|
1
|
|
|
|
|
2
|
|
10
|
1
|
|
|
1
|
|
521
|
use parent qw(Games::Word::Wordlist); |
|
1
|
|
|
|
|
335
|
|
|
1
|
|
|
|
|
4
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
1
|
114
|
sub phrases { my $self = shift; $self->words(@_) } |
|
1
|
|
|
|
|
8
|
|
13
|
0
|
|
|
0
|
1
|
0
|
sub random_phrase { my $self = shift; $self->random_word(@_) } |
|
0
|
|
|
|
|
0
|
|
14
|
2
|
|
|
2
|
1
|
1447
|
sub is_phrase { my $self = shift; $self->is_word(@_) } |
|
2
|
|
|
|
|
12
|
|
15
|
0
|
|
|
0
|
1
|
0
|
sub each_phrase { my $self = shift; $self->each_word(@_) } |
|
0
|
|
|
|
|
0
|
|
16
|
1
|
|
|
1
|
1
|
503
|
sub phrases_like { my $self = shift; $self->words_like(@_) } |
|
1
|
|
|
|
|
10
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
# ABSTRACT: Manage a list of phrases |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Games::Word::Phraselist - Manage a list of phrases |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This document describes version 0.05 of Games::Word::Phraselist (from Perl distribution Games-Word-Phraselist), released on 2016-02-05. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 METHODS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 new($filename | \@phrases) => obj |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 phrases() => int |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 random_phrase() => str |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 each_phrase |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 phrases_like($regex) => list |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 is_phrase($str) => bool |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 HOMEPAGE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Games-Word-Phraselist>. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SOURCE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Games-Word-Phraselist>. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 BUGS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Word-Phraselist> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
62
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
63
|
|
|
|
|
|
|
feature. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This software is copyright (c) 2016 by perlancar@cpan.org. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
74
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |