line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Catmandu::Sane; |
5
|
1
|
|
|
1
|
|
168907
|
use Moo; |
|
1
|
|
|
|
|
148272
|
|
|
1
|
|
|
|
|
8
|
|
6
|
1
|
|
|
1
|
|
262
|
use Memento::TimeTravel; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
7
|
1
|
|
|
1
|
|
790
|
use Catmandu::Fix::Has; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
8
|
1
|
|
|
1
|
|
383
|
|
|
1
|
|
|
|
|
856
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
10
|
|
|
|
|
|
|
has date => (fix_arg => 1); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Catmandu::Fix::SimpleGetValue'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my ($self, $var) = @_; |
15
|
|
|
|
|
|
|
my $date = $self->date; |
16
|
1
|
|
|
1
|
0
|
6223
|
|
17
|
1
|
|
|
|
|
5
|
"${var} = Memento::TimeTravel::find_mementos(${var},${date}) if is_string(${var}) && length(${var});"; |
18
|
|
|
|
|
|
|
} |
19
|
1
|
|
|
|
|
7
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Catmandu::Fix::memento_find - find Mementos for a url |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Find mementos for a URL. E.g. myurl => 'http://www.ugent.be' |
27
|
|
|
|
|
|
|
memento_find(myurl,2013) |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SEE ALSO |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
L<Catmandu::Fix> |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |