Acme::BloodType

Acme::BloodType is a Perl module for those obsessed with celebrities' blood types.
Download

Acme::BloodType Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Rodland
  • Publisher web site:
  • http://search.cpan.org/~arodland/Acme-BloodType-0.01/lib/Acme/BloodType.pm

Acme::BloodType Tags


Acme::BloodType Description

Acme::BloodType is a Perl module for those obsessed with celebrities' blood types. Acme::BloodType is a Perl module for those obsessed with celebrities' blood types.SYNOPSISAllows you to model people with different blood-types and see what would happen if they had a kid. Alpha version handles ABO only for now. use Acme::BloodType; # Hooray for gene sequencers $mary = Acme::BloodType->new({ genotype => "AA" }); $bill = Acme::BloodType->new({ phenotype => "O" }); $baby = $mary->cross($bill); print "It's a ", $baby->get_bloodtype, "!n";METHODSAcme::BloodType->new(%specifier)Create an Acme::Bloodtype object representing a person. You may specify genotype, phenotype (in which case a genotype is chosen at random), or nothing, in which case it's all random. Probabilities don't (yet) model real-world distributions.$bt->get_bloodtypeGet the bloodtype (phenotype) of this person. Returns "A", "B", "AB", or "O".$bt->get_genotypeGet the genotype of this person. Returns a string of two characters, which may be "A", "B", or "O".$bt1->cross($bt2)"Mate" one person with the other, producing a result chosen randomly in the style of Mendel. Requirements: · Perl


Acme::BloodType Related Software