blib/lib/WordList/Phrase/EN/Proverb/TWW.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package WordList::Phrase::EN::Proverb::TWW;
2  
3 1 our $DATE = '2016-01-13'; # DATE
4 1 our $VERSION = '0.03'; # VERSION
5  
6 1 ▶use WordList;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 our @ISA = qw(WordList);
8  
9 1 our %STATS = ("avg_word_len",37.4152542372881,"num_words",472,"num_words_contains_unicode",0,"longest_word_len",97,"shortest_word_len",13,"num_words_contains_whitespace",472,"num_words_contains_nonword_chars",472); # STATS
10  
11 1 1;
12 # ABSTRACT: Proverb phrases from Tom Wills
13  
14  
15  
16  
17 =pod
18  
19 =encoding UTF-8
20  
21 =head1 NAME
22  
23 WordList::Phrase::EN::Proverb::TWW - Proverb phrases from Tom Wills
24  
25 =head1 VERSION
26  
27 This document describes version 0.03 of WordList::Phrase::EN::Proverb::TWW (from Perl distribution WordList-Phrase-EN-Proverb-TWW), released on 2016-01-13.
28  
29 =head1 SYNOPSIS
30  
31 use WordList::Phrase::EN::Proverb::TWW;
32  
33 my $wl = WordList::Phrase::EN::Proverb::TWW->new;
34  
35 # Pick a (or several) random word(s) from the list
36 my $word = $wl->pick;
37 my @words = $wl->pick(3);
38  
39 # Check if a word exists in the list
40 if ($wl->word_exists('foo')) { ... }
41  
42 # Call a callback for each word
43 $wl->each_word(sub { my $word = shift; ... });
44  
45 # Get all the words
46 my @all_words = $wl->all_words;
47  
48 =head1 STATISTICS
49  
50 +----------------------------------+------------------+
51 | key | value |
52 +----------------------------------+------------------+
53 | avg_word_len | 37.4152542372881 |
54 | longest_word_len | 97 |
55 | num_words | 472 |
56 | num_words_contains_nonword_chars | 472 |
57 | num_words_contains_unicode | 0 |
58 | num_words_contains_whitespace | 472 |
59 | shortest_word_len | 13 |
60 +----------------------------------+------------------+
61  
62 The statistics is available in the C<%STATS> package variable.
63  
64 =head1 SEE ALSO
65  
66 Converted from L<Games::Word::Phraselist::Proverb::TWW> 0.01.
67  
68 =head1 HOMEPAGE
69  
70 Please visit the project's homepage at L<https://metacpan.org/release/WordList-Phrase-EN-Proverb-TWW>.
71  
72 =head1 SOURCE
73  
74 Source repository is at L<https://github.com/perlancar/perl-WordList-Phrase-EN-Proverb-TWW>.
75  
76 =head1 BUGS
77  
78 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=WordList-Phrase-EN-Proverb-TWW>
79  
80 When submitting a bug or request, please include a test-file or a
81 patch to an existing test-file that illustrates the bug or desired
82 feature.
83  
84 =head1 AUTHOR
85  
86 perlancar <perlancar@cpan.org>
87  
88 =head1 COPYRIGHT AND LICENSE
89  
90 This software is copyright (c) 2016 by perlancar@cpan.org.
91  
92 This is free software; you can redistribute it and/or modify it under
93 the same terms as the Perl 5 programming language system itself.
94  
95 =cut
96  
97  
98 __DATA__
↑ Summary