| Data-RandomPerson documentation | Contained in the Data-RandomPerson distribution. |
Data::RandomPerson::Names::EnglishMale - A list of male names
This document refers to version 0.4 of Data::RandomPerson::Names::EnglishMale, released Sept 13th, 2005
use Data::RandomPerson::Names::EnglishMale; my $n = Data::RandomPerson::Names::EnglishMale->new(); print $n->get();
Returns a random element from a list of male names culled from Chris Pound's language machines page at http://www.ruf.rice.edu/~pound/#scripts.
Create the Data::RandomPerson::Names::EnglishMale object.
Returns a random name from the list.
Returns the size of the list
Perl 5
None
None so far
None
None
Peter Hickman (peterhi@ntlworld.com)
Copyright (c) 2005, Peter Hickman. All rights reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
| Data-RandomPerson documentation | Contained in the Data-RandomPerson distribution. |
# $Id: EnglishMale.pm,v 1.3 2005/05/22 17:02:28 peterhickman Exp $ package Data::RandomPerson::Names::EnglishMale; use strict; use warnings; use base 'Data::RandomPerson::Names'; use Data::RandomPerson::Choice; sub new { my ($class) = @_; my $self = bless {}, $class; $self->{choice} = Data::RandomPerson::Choice->new(); $self->{choice}->add_list( qw/ aaron adam adrian alan alejandro alex allen andrew andy anthony art arthur barry bart ben benjamin bill bobby brad bradley brendan brett brian bruce bryan carlos chad charles chris christopher chuck clay corey craig dan daniel darren dave david dean dennis denny derek don doug duane edward eric eugene evan frank fred gary gene george gordon greg harry henry hunter ivan jack james jamie jason jay jeff jeffrey jeremy jim joe joel john jonathan joseph justin keith ken kevin larry logan marc mark matt matthew michael mike nat nathan patrick paul perry peter philip phillip randy raymond ricardo richard rick rob robert rod roger ross ruben russell ryan sam scot scott sean shaun stephen steve steven stewart stuart ted thomas tim toby todd tom troy victor wade walter wayne william / ); return $self; } 1; __END__