| 1 | 2 | ▶ | use 5.006; # our, __PACKAGE__, etc |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Color::Library::Dictionary::XKCD; | ||
| 6 | |||
| 7 | 2 | our $VERSION = '1.000001'; | |
| 8 | |||
| 9 | # ABSTRACT: Colors determined by the XKCD Color Survey. | ||
| 10 | |||
| 11 | 2 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |
| 12 | |||
| 13 | 2 | ▶ | use Moo qw( extends ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use Color::Library 0.021; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use File::ShareDir qw( dist_file ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | extends 'Color::Library::Dictionary'; | |
| 17 | |||
| 18 | 2 | __PACKAGE__->_register_dictionary; | |
| 19 | |||
| 20 | 1 | ▶ | sub _load_color_list { |
|
Subroutine
_load_color_list: called CC=1 SCAR=0.0
| |||
| 21 | 1 | my $file = dist_file( 'Color-Library-Dictionary-XKCD', 'color_list.pl' ); | |
| 22 | 1 | return [ do $file ]; | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub _description { |
|
Subroutine
_description: not called CC=1 SCAR=6.9
| |||
| 26 | return { | ||
| 27 | 0 | 'subtitle' => 'Colors determined by the XKCD Color Survey', | |
| 28 | 'title' => 'XKCD', | ||
| 29 | 'description' => <<"_EOF_", | ||
| 30 | The web comic XKCD[http://xkcd.com] ran a rather wide-spread color survey | ||
| 31 | to gauge the social perception of colors, at least, with regard to screen print spaces. | ||
| 32 | |||
| 33 | The findings of this survey can be found here: | ||
| 34 | |||
| 35 | [http://blog.xkcd.com/2010/05/03/color-survey-results/] | ||
| 36 | _EOF_ | ||
| 37 | }; | ||
| 38 | } | ||
| 39 | 2 | ▶ | no Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 40 | |||
| 41 | 2 | 1; | |
| 42 | |||
| 43 | __END__ | ||