line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
our $VERSION = '0.021'; # VERSION |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use strict; |
5
|
2
|
|
|
2
|
|
956
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
51
|
|
6
|
2
|
|
|
2
|
|
9
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
7
|
|
|
|
|
|
|
use Date::Holidays::GB; |
8
|
2
|
|
|
2
|
|
8
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
60
|
|
9
|
|
|
|
|
|
|
use base qw( Exporter ); |
10
|
2
|
|
|
2
|
|
10
|
our @EXPORT_OK = qw( |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
447
|
|
11
|
|
|
|
|
|
|
holidays |
12
|
|
|
|
|
|
|
is_holiday |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my %args |
16
|
|
|
|
|
|
|
= $_[0] =~ m/\D/ |
17
|
1
|
50
|
|
1
|
0
|
8
|
? @_ |
18
|
|
|
|
|
|
|
: ( year => $_[0] ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
return Date::Holidays::GB::holidays( %args, regions => [ 'EAW' ] ); |
21
|
|
|
|
|
|
|
} |
22
|
1
|
|
|
|
|
6
|
|
23
|
|
|
|
|
|
|
my %args |
24
|
|
|
|
|
|
|
= $_[0] =~ m/\D/ |
25
|
|
|
|
|
|
|
? @_ |
26
|
5
|
50
|
|
5
|
0
|
1251
|
: ( year => $_[0], month => $_[1], day => $_[2] ); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
return Date::Holidays::GB::is_holiday( %args, regions => [ 'EAW' ] ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
5
|
|
|
|
|
25
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Date::Holidays::GB::EAW - Date::Holidays class for GB-EAW (England & Wales) |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 SYNOPSIS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use Date::Holidays::GB::EAW qw( holidays is_holiday ); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
# All holidays for England & Wales |
43
|
|
|
|
|
|
|
my $holidays = holidays( year => 2013 ); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
if ( is_holiday( year => 2013, month => 12, day => 25 ) ) { |
46
|
|
|
|
|
|
|
print "No work today!"; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|