line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::RSS::Headline::UsePerlJournals; |
2
|
1
|
|
|
1
|
|
15264
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
96
|
|
3
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
49
|
|
4
|
1
|
|
|
1
|
|
6
|
use base qw(XML::RSS::Headline); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12215
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = 2.32; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub item { |
9
|
0
|
|
|
0
|
1
|
|
my ( $self, $item ) = @_; |
10
|
0
|
|
|
|
|
|
$self->SUPER::item($item); # set url and description |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my $headline = $self->headline; |
13
|
0
|
|
|
|
|
|
my $url = $self->url; |
14
|
0
|
|
|
|
|
|
my ($id) = $url =~ /\/\~(.+?)\//; |
15
|
0
|
|
|
|
|
|
$headline =~ s/\s+\(.+\)\s*$//; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
$self->headline("[$id] $headline"); |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |