Posted on 2006-07-21 23:49:17-07 by webmaster33
Namedays of different religions on same day
It would be good idea, to be able to retrieve namedays of different religions, too. The API would be easy.

For example a simple query for Hungarian Reformed namedays:
my ($names) = $nd->get_namedays ( country => "Hungarian", date => "7,24,2001", religion => "Reformed" );

Get multiple namedays with array of hashes:
my ($names) = $nd->get_namedays ([ { country => "Hungarian", date => "7,24,2001" }, { country => "Hungarian", date => "7,24,2001", religion => "Evangelic" }, { country => "Hungarian", date => "7,24,2001", religion => "Reformed" }, { country => "Hungarian", date => "7,24,2001", religion => "Catholic" }, ]);


Legend:
Hungarian = listing the common Hungarian namedays (general Hungarian name calendar)
Evangelic, Reformed, Catholic, etc. = Religions

Returned hash reference example:
$names = { 'Hungarian' => [ 'pista', 'jozsi', 'anna' ], 'Hungarian-Evangelic' => [ 'pista'], 'Hungarian-Reformed' => [ 'anna'], 'Hungarian-Catholic' => [ 'pista', 'jozsi', 'ildiko' ] };


Returned array example:
my (@names) = $nd->get_namedays ([ { country => "Hungarian", date => "7,24,2001" }, { country => "Hungarian", date => "7,24,2001", religion => "Evangelic" }, { country => "Hungarian", date => "7,24,2001", religion => "Reformed" }, { country => "Hungarian", date => "7,24,2001", religion => "Catholic" }, ]);<br> @names = ('pista', 'jozsi', 'anna', 'ildiko');
The double elements should be filtered out in the array.

Native language religion query:
my (@names) = $nd->get_namedays(0,0,0, "Hungarian-Evangelic", "Hungarian-Reformed", "Hungarian-Cath +olic");

This should return the translated names of the input religions:
@names = ('Evangelikus', 'Reformatus', 'Katolikus', stb...);


Thanks,
Webmaster33
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.