| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Date::Manip; |
|
2
|
|
|
|
|
|
|
# Copyright (c) 2010-2023 Sullivan Beck. All rights reserved. |
|
3
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify it |
|
4
|
|
|
|
|
|
|
# under the same terms as Perl itself. |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
########################################################################### |
|
7
|
|
|
|
|
|
|
########################################################################### |
|
8
|
|
|
|
|
|
|
|
|
9
|
204
|
|
|
204
|
|
471270
|
use warnings; |
|
|
204
|
|
|
|
|
374
|
|
|
|
204
|
|
|
|
|
5436
|
|
|
10
|
204
|
|
|
204
|
|
879
|
use strict; |
|
|
204
|
|
|
|
|
329
|
|
|
|
204
|
|
|
|
|
2976
|
|
|
11
|
204
|
|
|
204
|
|
813
|
use Exporter; |
|
|
204
|
|
|
|
|
314
|
|
|
|
204
|
|
|
|
|
27944
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION; |
|
14
|
|
|
|
|
|
|
$VERSION='6.92'; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our (@ISA,@EXPORT); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $backend; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
if ((exists $ENV{'DATE_MANIP'} && $ENV{'DATE_MANIP'} eq 'DM5') || |
|
21
|
|
|
|
|
|
|
(defined $Date::Manip::Backend && $Date::Manip::Backend eq 'DM5')) { |
|
22
|
|
|
|
|
|
|
$backend = 'Date::Manip::DM5'; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} elsif ($] >= 5.010) { |
|
25
|
|
|
|
|
|
|
$backend = 'Date::Manip::DM6'; |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} else { |
|
28
|
|
|
|
|
|
|
$backend = 'Date::Manip::DM5'; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
my $backend_exp = $backend . "::EXPORT"; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
my $flag = eval "require $backend; $backend->import(); return 'loaded';"; |
|
34
|
|
|
|
|
|
|
if (! $flag) { |
|
35
|
|
|
|
|
|
|
die "ERROR LOADING MODULE: $backend"; |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
{ |
|
39
|
204
|
|
|
204
|
|
1035
|
no strict 'refs'; |
|
|
204
|
|
|
|
|
326
|
|
|
|
204
|
|
|
|
|
14464
|
|
|
40
|
|
|
|
|
|
|
@EXPORT = @{ $backend_exp }; |
|
41
|
|
|
|
|
|
|
} |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
unshift (@ISA, $backend); |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
|
46
|
|
|
|
|
|
|
# Local Variables: |
|
47
|
|
|
|
|
|
|
# mode: cperl |
|
48
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
|
49
|
|
|
|
|
|
|
# cperl-indent-level: 3 |
|
50
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 2 |
|
51
|
|
|
|
|
|
|
# cperl-continued-brace-offset: 0 |
|
52
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
|
53
|
|
|
|
|
|
|
# cperl-brace-imaginary-offset: 0 |
|
54
|
|
|
|
|
|
|
# cperl-label-offset: 0 |
|
55
|
|
|
|
|
|
|
# End: |