blib/lib/Comics/Plugin/RedPanels.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #! perl
2  
3 use strict;
4 use warnings;
5  
6 package Comics::Plugin::RedPanels;
7  
8 our $disabled = 1;
9  
10 =begin disabled
11  
12 2017-02-27
13 Dear Readers,
14  
15 After 18 wonderful months as the creator of RedPanels, I am announcing
16 my retirement. Knowing and interacting with you has made all the labor
17 worthwhile.
18  
19 =cut
20  
21 use parent qw(Comics::Fetcher::Single);
22  
23 our $VERSION = "1.01";
24  
25 our $name = "Red Panels";
26 our $url = "http://www.redpanels.com/";
27  
28 our $pattern =
29 qr{ <img \s+
30 (?: id='comicImg' \s+ )?
31 src='(?<url>http://redpanels.com/comics/(?<image>.*?\.\w+))' \s+
32 alt='(?<alt>.*?)' \s*
33 >
34 }six;
35  
36 # Important: Return the package name!
37 __PACKAGE__;