Subject: | Bank::Holidays |
Date: | Mon, 8 Oct 2007 18:32:29 -0400 |
To: | <bug-Bank-Holidays [...] rt.cpan.org> |
From: | "Ian Rubado" <jbubado [...] telco214.com> |
Hi there,
The following code assumes a two digit day:
---------------------
if ( $col =~ /(\d{4})/ ) {
$colyears[$colcount] = $1;
} elsif ( $col =~ /(\w+)\s(\d{2})(\d|)$/ ) {
push @{$holidays->{$colyears[$colcount]}->{$months->{$1}}},
{
day => $2,
satflag => $3
};
}
----------------------
But the federal reserve page uses 1 digit for single digit days.
SO, should be:
} elsif ( $col =~ /(\w+)\s(\d{1})(\d|)$/ ) {
Thanks.