| 1 | package Acme::MetaSyntactic::us_presidents; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use Acme::MetaSyntactic::List; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | our @ISA = qw( Acme::MetaSyntactic::List ); | |
| 5 | 2 | our $VERSION = '1.001'; | |
| 6 | 2 | __PACKAGE__->init(); | |
| 7 | |||
| 8 | our %Remote = ( | ||
| 9 | source => 'https://www.whitehouse.gov/1600/Presidents', | ||
| 10 | 0 | ▶ | extract => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 11 | return | ||
| 12 | 0 | map { s/(?:,| the [1-9]).*//; y'- .'_'; s/_+/_/g; s/_+\z//; s/\b(.)/uc $1/eg; $_ } | |
| 13 | #grep { !/^(?:BEGIN|END)$/ } | ||
| 14 | #$_[0] =~ /"Portrait of ([^"]+)"/g; | ||
| 15 | $_[0] =~ m{<h3 class="acctext--con grid-item__title h4alt">\s*([^<]+?)\s*</h3>}g; | ||
| 16 | } | ||
| 17 | 2 | ); | |
| 18 | |||
| 19 | 2 | 1; | |
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Acme::MetaSyntactic::us_presidents - The presidents of the USA theme | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | Presidents of the USA. | ||
| 28 | |||
| 29 | This list is based on the official White House list, available at: | ||
| 30 | L<https://www.whitehouse.gov/1600/Presidents>. | ||
| 31 | |||
| 32 | =head1 CONTRIBUTOR | ||
| 33 | |||
| 34 | Abigail | ||
| 35 | |||
| 36 | =head1 CHANGES | ||
| 37 | |||
| 38 | =over 4 | ||
| 39 | |||
| 40 | =item * | ||
| 41 | |||
| 42 | 2021-04-30 - v1.002 | ||
| 43 | |||
| 44 | Updated with the new US president since 2017 | ||
| 45 | in Acme-MetaSyntactic-Themes version 1.055. | ||
| 46 | |||
| 47 | =item * | ||
| 48 | |||
| 49 | 2017-06-12 - v1.001 | ||
| 50 | |||
| 51 | Updated with the new US president since 2012 | ||
| 52 | in Acme-MetaSyntactic-Themes version 1.050. | ||
| 53 | |||
| 54 | =item * | ||
| 55 | |||
| 56 | 2012-05-07 - v1.000 | ||
| 57 | |||
| 58 | Updated with the new US president since 2008, and | ||
| 59 | received its own version number in Acme-MetaSyntactic-Themes version 1.000. | ||
| 60 | |||
| 61 | =item * | ||
| 62 | |||
| 63 | 2006-01-16 | ||
| 64 | |||
| 65 | Updated (correction of a typo) by Abigail again | ||
| 66 | in Acme-MetaSyntactic version 0.57. | ||
| 67 | |||
| 68 | =item * | ||
| 69 | |||
| 70 | Introduced in Acme-MetaSyntactic version 0.52, published on December 12, 2005. | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | 2005-10-20 | ||
| 75 | |||
| 76 | Submitted by Abigail. | ||
| 77 | |||
| 78 | =back | ||
| 79 | |||
| 80 | =head1 SEE ALSO | ||
| 81 | |||
| 82 | L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::List>. | ||
| 83 | |||
| 84 | =cut | ||
| 85 | |||
| 86 | __DATA__ | ||