| 1 | package Games::Domino::Params; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | $Games::Domino::Params::VERSION = '0.22'; | |||||||||
| 4 | 4 | $Games::Domino::Params::AUTHORITY = 'cpan:MANWAR'; | |||||||||
| 5 | |||||||||||
| 6 | =head1 NAME | ||||||||||
| 7 | |||||||||||
| 8 | Games::Domino::Params - Placeholder for parameters for Games::Domino. | ||||||||||
| 9 | |||||||||||
| 10 | =head1 VERSION | ||||||||||
| 11 | |||||||||||
| 12 | Version 0.22 | ||||||||||
| 13 | |||||||||||
| 14 | =cut | ||||||||||
| 15 | |||||||||||
| 16 | 4 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 4 | ▶ | use strict; use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 4 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 4 | ▶ | use vars qw(@ISA @EXPORT @EXPORT_OK); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | 4 | require Exporter; | |||||||||
| 22 | 4 | @ISA = qw(Exporter); | |||||||||
| 23 | 4 | @EXPORT_OK = qw($ZeroOrOne $ZeroToSix $HorC); | |||||||||
| 24 | |||||||||||
| 25 | our $ZeroOrOne = sub { | ||||||||||
| 26 | 39 | ▶ | die "ERROR: Only 0 or 1 allowed.\n" unless ($_[0] =~ /^[0|1]$/); | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 27 | 4 | }; | |||||||||
| 28 | |||||||||||
| 29 | our $ZeroToSix = sub { | ||||||||||
| 30 | 83 | ▶ | die "ERROR: Only 0 to 6 allowed.\n" unless ($_[0] =~ /^[0-6]$/); | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 31 | 4 | }; | |||||||||
| 32 | |||||||||||
| 33 | our $HorC = sub { | ||||||||||
| 34 | 4 | ▶ | die "Attribute (name) does not pass the type constraint [$_[0]].\n" | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 35 | unless ($_[0] =~ /^[H|C]$/i); | ||||||||||
| 36 | 4 | }; | |||||||||
| 37 | |||||||||||
| 38 | =head1 DESCRIPTION | ||||||||||
| 39 | |||||||||||
| 40 | It is used internally by L<Games::Domino>. | ||||||||||
| 41 | |||||||||||
| 42 | =head1 AUTHOR | ||||||||||
| 43 | |||||||||||
| 44 | Mohammad S Anwar, C<< <mohammad.anwar at yahoo.com> >> | ||||||||||
| 45 | |||||||||||
| 46 | =head1 REPOSITORY | ||||||||||
| 47 | |||||||||||
| 48 | L<https://github.com/manwar/Games-Domino> | ||||||||||
| 49 | |||||||||||
| 50 | =head1 BUGS | ||||||||||
| 51 | |||||||||||
| 52 | Please report any bugs or feature requests to C<bug-games-domino at rt.cpan.org>, | ||||||||||
| 53 | or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Domino>. | ||||||||||
| 54 | I will be notified, and then you'll automatically be notified of progress on your | ||||||||||
| 55 | bug as I make changes. | ||||||||||
| 56 | |||||||||||
| 57 | =head1 SUPPORT | ||||||||||
| 58 | |||||||||||
| 59 | You can find documentation for this module with the perldoc command. | ||||||||||
| 60 | |||||||||||
| 61 | perldoc Games::Domino::Params | ||||||||||
| 62 | |||||||||||
| 63 | You can also look for information at: | ||||||||||
| 64 | |||||||||||
| 65 | =over 4 | ||||||||||
| 66 | |||||||||||
| 67 | =item * RT: CPAN's request tracker (report bugs here) | ||||||||||
| 68 | |||||||||||
| 69 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Games-Domino> | ||||||||||
| 70 | |||||||||||
| 71 | =item * AnnoCPAN: Annotated CPAN documentation | ||||||||||
| 72 | |||||||||||
| 73 | L<http://annocpan.org/dist/Games-Domino> | ||||||||||
| 74 | |||||||||||
| 75 | =item * CPAN Ratings | ||||||||||
| 76 | |||||||||||
| 77 | L<http://cpanratings.perl.org/d/Games-Domino> | ||||||||||
| 78 | |||||||||||
| 79 | =item * Search CPAN | ||||||||||
| 80 | |||||||||||
| 81 | L<http://search.cpan.org/dist/Games-Domino/> | ||||||||||
| 82 | |||||||||||
| 83 | =back | ||||||||||
| 84 | |||||||||||
| 85 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 86 | |||||||||||
| 87 | Copyright 2012 - 2015 Mohammad S Anwar. | ||||||||||
| 88 | |||||||||||
| 89 | This program is free software; you can redistribute it and / or modify it under | ||||||||||
| 90 | the terms of the the Artistic License (2.0). You may obtain a copy of the full | ||||||||||
| 91 | license at: | ||||||||||
| 92 | |||||||||||
| 93 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||||||||||
| 94 | |||||||||||
| 95 | Any use, modification, and distribution of the Standard or Modified Versions is | ||||||||||
| 96 | governed by this Artistic License.By using, modifying or distributing the Package, | ||||||||||
| 97 | you accept this license. Do not use, modify, or distribute the Package, if you do | ||||||||||
| 98 | not accept this license. | ||||||||||
| 99 | |||||||||||
| 100 | If your Modified Version has been derived from a Modified Version made by someone | ||||||||||
| 101 | other than you,you are nevertheless required to ensure that your Modified Version | ||||||||||
| 102 | complies with the requirements of this license. | ||||||||||
| 103 | |||||||||||
| 104 | This license does not grant you the right to use any trademark, service mark, | ||||||||||
| 105 | tradename, or logo of the Copyright Holder. | ||||||||||
| 106 | |||||||||||
| 107 | This license includes the non-exclusive, worldwide, free-of-charge patent license | ||||||||||
| 108 | to make, have made, use, offer to sell, sell, import and otherwise transfer the | ||||||||||
| 109 | Package with respect to any patent claims licensable by the Copyright Holder that | ||||||||||
| 110 | are necessarily infringed by the Package. If you institute patent litigation | ||||||||||
| 111 | (including a cross-claim or counterclaim) against any party alleging that the | ||||||||||
| 112 | Package constitutes direct or contributory patent infringement,then this Artistic | ||||||||||
| 113 | License to you shall terminate on the date that such litigation is filed. | ||||||||||
| 114 | |||||||||||
| 115 | Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND | ||||||||||
| 116 | CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED | ||||||||||
| 117 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR | ||||||||||
| 118 | NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS | ||||||||||
| 119 | REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, | ||||||||||
| 120 | INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE | ||||||||||
| 121 | OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||||||
| 122 | |||||||||||
| 123 | =cut | ||||||||||
| 124 | |||||||||||
| 125 | 4 | 1; # End of Games::Domino::Params | |||||||||