I don't know what to call this module. Basically it will return Roman
Catholic Feasts. However it would be simple to extend it to return Anglican
(Church of England) and/or Orthodox Feasts and Celebrations.
What I'm thinking is to distribute:
DateTime::Event::Church::Catholic.pm
DateTime::Event::Church::Anglican.pm
DateTime::Event::Church::Orthodox.pm
Which will all basically just contain data that the main module
(DateTime::Event::Church.pm) calls in. This would mean that you could
possibly load all three. The three would have to make sure that they didn't
block each other with all their crazy rules.
Anyways, here's an infentesimally small sample of the data (I've only just
started and DateTime::Event::Church::Catholic.pm is 36K!)
What I'm wondering is: Is there a better (more compact, but still fast) way
to store this than in a perl data structure?
'Thursday after Ash Wednesday' => {
precedence => 'Weekday',
season => 'Lent',
color => 'Purple',
relation => 'Easter Sunday',
offset => -38
},
'Easter Sunday' => {
precedence => 'Solemnity',
season => 'Paschal',
color => 'White',
callback => \&easter,
},
'Conversion of St. Paul the Apostle' => {
precedence => 'Feast',
color => 'White',
fixedmonth => 1,
fixedday => 25,
},
Cheers!
Rick
--------------------------------------------------------
�� � � � � � There are 10 kinds of people:
�� those that understand binary, and those that don't.
--------------------------------------------------------
�� The day Microsoft makes something that doesn't suck
�� � is the day they start selling vacuum cleaners
--------------------------------------------------------