blib/lib/Comics/Plugin/UserFriendly.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::UserFriendly;
7  
8 use parent qw(Comics::Fetcher::Cascade);
9  
10 our $VERSION = "1.00";
11  
12 our $name = "User Friendly";
13 our $url = "http://ars.userfriendly.org";
14 our $patterns = [
15 qr{ <a \s+ href="(?<url>.*?)">
16 <img \s+ alt="latest\s+strip"
17 }ix,
18 qr{ <img \s+
19 border="0" \s+
20 src="(?<url>https?://www.userfriendly.org/cartoons/archives/.+?/(?<image>[^.]+\.gif))" \s+
21 width="\d+" \s+ height="\d+" \s+
22 alt="Strip \s+ for \s+
23 }ix,
24 ];
25  
26 # Important: Return the package name!
27 __PACKAGE__;