
Games::Die::Result - what you get when you roll one die

version 0.999_01
$Id: Result.pm 1148 2006-12-08 13:34:36Z rjbs $

my $dic = Games::Die->new(6); my $result = $die->roll; say "You rolled: ", $result->value;

Games::Die::Result objects are returned when the roll method is called on a Game::Die object.

my $result = Games::Die::Result->new(\%arg);
This method creates a new result. You shouldn't need to use it outside of Games::Die classes.
Valid arguments are:
value - the value shown on the die
If no other arguments are given, the value of value may be passed as a plain scalar in place of %arg.
This method returns the value of the result.

Ricardo SIGNES, <rjbs@cpan.org>

Please report any bugs or feature requests to bug-games-dice@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Copyright 2005, Ricardo SIGNES.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.