| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package XML::RSS::Headline::PerlJobs; |
|
2
|
2
|
|
|
2
|
|
9668
|
use strict; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
64
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
51
|
|
|
4
|
2
|
|
|
2
|
|
9
|
use base qw(XML::RSS::Headline); |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
1137
|
|
|
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 $key = 'http://jobs.perl.org/rss/'; |
|
13
|
|
|
|
|
|
|
|
|
14
|
0
|
|
0
|
|
|
|
my $name = $item->{$key}{company_name} || ''; |
|
15
|
0
|
|
0
|
|
|
|
my $location = $item->{$key}{location} || 'Unknown Location'; |
|
16
|
0
|
|
0
|
|
|
|
my $hours = $item->{$key}{hours} || 'Unknown Hours'; |
|
17
|
0
|
|
0
|
|
|
|
my $terms = $item->{$key}{employment_terms} || 'Unknown Terms'; |
|
18
|
|
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
my $name_location = $name ? $name . ' - ' . $location : $location; |
|
20
|
0
|
|
|
|
|
|
$self->headline("$item->{title}\n$name_location\n$hours, $terms"); |
|
21
|
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
return; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |