| 1 | # ABSTRACT: match a BBC sport RSS item | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | |||||||||||||||
| 7 | package App::Rssfilter::Match::BbcSports; | ||||||||||||||
| 8 | { | ||||||||||||||
| 9 | 1 | $App::Rssfilter::Match::BbcSports::VERSION = '0.07'; | |||||||||||||
| 10 | } | ||||||||||||||
| 11 | 1 | ▶ | use Method::Signatures; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | |||||||||||||||
| 13 | |||||||||||||||
| 14 | 1 | ▶ | func match ( $item ) { | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
match: called CC=3 SCAR=11.0
Branch: 2 branches
| |||||||||||||||
| 15 | 1 | return $item->guid->text =~ qr{ www [.] bbc [.] co [.] uk / sport [1]? / }xms; | |||||||||||||
| 16 | } | ||||||||||||||
| 17 | |||||||||||||||
| 18 | 1 | 1; | |||||||||||||
| 19 | |||||||||||||||
| 20 | __END__ | ||||||||||||||