| Data-RandomPerson documentation | Contained in the Data-RandomPerson distribution. |
Data::RandomPerson::Names - Base class to hold the common methods required for the names
This document refers to version 0.4 of Data::RandomPerson::Names, released Sept 13th, 2005
There is no need to call this class
There is no need to call this class
Returns a Data::RandomPerson::Names object.
Returns the size of the list so far.
Returns an element from the list.
Perl 5
None from this code
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: Names.pm,v 1.3 2005/09/13 18:50:49 peterhickman Exp $ package Data::RandomPerson::Names; use strict; use warnings; sub size { my ($self) = @_; return $self->{choice}->size(); } sub get { my ($self) = @_; return ucfirst $self->{choice}->pick(); } 1; __END__