Skip Menu |

This queue is for tickets about the Acme-CPANAuthors CPAN distribution.

Report information
The Basics
Id: 58891
Status: resolved
Priority: 0/
Queue: Acme-CPANAuthors

People
Owner: Nobody in particular
Requestors: garu [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: dual nationality?
Hi there! What should happen if a CPAN Author has dual nationality (or dual citizenship)? I added Daisuke Maki to Acme::CPANAuthors::Brazilian, and he's obviously also in Acme::CPANAuthors::Japanese. This is what happened: $ perl -MAcme::CPANAuthors -E 'say $_->{name} . q[+] . $_->{category} foreach (Acme::CPANAuthors->look_for(q[DMAKI]))' Daisuke Maki+Brazilian Daisuke Maki+Japanese Since he's just one, and with a single CPAN Id, there should be only one entry, no? I really have no idea how to solve this the "right" way, or if there is a "right" way. But I thought you should be aware of this, since it's your call :D Cheers! garu
On 2010-06-27 23:09:10, GARU wrote: Show quoted text
> Hi there! > > What should happen if a CPAN Author has dual nationality (or dual > citizenship)?
What is the issue? look_for returns a list of hashes, one hash per match. There's a few other cases where an author may appear in more than one list, as not all of the Authors distributions are for nations.
On Thu May 30 16:06:26 2013, ETHER wrote: Show quoted text
> On 2010-06-27 23:09:10, GARU wrote:
> > Hi there! > > > > What should happen if a CPAN Author has dual nationality (or dual > > citizenship)?
> > What is the issue? look_for returns a list of hashes, one hash per > match. > > There's a few other cases where an author may appear in more than one > list, as not all of the Authors distributions are for nations.
That's fine, I was just thinking it could return matches on an arrayref, per hash key (instead of one hash per match). Current behaviour is totally fine, though. I just didn't know whether you guys had considered it before, i.e. if what what I got was per-design or by accident. Thanks!