Data::RandomPerson::Names - Base class to hold the common methods required for the names


Data-RandomPerson documentation Contained in the Data-RandomPerson distribution.

Index


Code Index:

NAME

Top

Data::RandomPerson::Names - Base class to hold the common methods required for the names

VERSION

Top

This document refers to version 0.4 of Data::RandomPerson::Names, released Sept 13th, 2005

SYNOPSIS

Top

There is no need to call this class

DESCRIPTION

Top

Overview

There is no need to call this class

Constructors and initialization

Data::RandomPerson::Names->new( )

Returns a Data::RandomPerson::Names object.

Class and object methods

size( )

Returns the size of the list so far.

get()

Returns an element from the list.

ENVIRONMENT

Top

Perl 5

DIAGNOSTICS

Top

None from this code

BUGS

Top

None so far

FILES

Top

None

SEE ALSO

Top

None

AUTHOR

Top

Peter Hickman (peterhi@ntlworld.com)

COPYRIGHT

Top


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__