diff options
Diffstat (limited to 'lib/Games/Word.pm')
-rw-r--r-- | lib/Games/Word.pm | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/Games/Word.pm b/lib/Games/Word.pm index 8f815fc..479d06d 100644 --- a/lib/Games/Word.pm +++ b/lib/Games/Word.pm @@ -1,15 +1,13 @@ -#!perl package Games::Word; -require Exporter; -@ISA = qw/Exporter/; -@EXPORT_OK = qw/random_permutation is_permutation all_permutations - shared_letters shared_letters_by_position - random_string_from - is_substring all_substrings - is_subpermutation all_subpermutations/; - use strict; use warnings; +use base 'Exporter'; +our @EXPORT_OK = qw/random_permutation is_permutation all_permutations + shared_letters shared_letters_by_position + random_string_from + is_substring all_substrings + is_subpermutation all_subpermutations/; + use Math::Combinatorics qw/factorial/; use Test::Deep::NoTest; @@ -300,7 +298,7 @@ L<http://search.cpan.org/dist/Games-Word> =head1 COPYRIGHT AND LICENSE -Copyright 2008 Jesse Luehrs. +Copyright 2008-2009 Jesse Luehrs. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. @@ -308,4 +306,3 @@ under the same terms as Perl itself. =cut 1; - |