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