diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-03 16:32:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-03 16:32:23 +1300 |
commit | c4214832c376c9424bab0e67c88a34e7cbefaf7a (patch) | |
tree | 53730e8c7b877d2f92dca14547edc4ae95aeb1db | |
parent | Adjust exporting to accommodate old Perls (diff) | |
download | List-Breakdown-c4214832c376c9424bab0e67c88a34e7cbefaf7a.tar.gz (sig) List-Breakdown-c4214832c376c9424bab0e67c88a34e7cbefaf7a.zip |
Correct some awkward documentationv0.04
-rw-r--r-- | lib/List/Filters.pm | 7 | ||||
-rw-r--r-- | t/words.t | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/List/Filters.pm b/lib/List/Filters.pm index 73dcd45..1e31f69 100644 --- a/lib/List/Filters.pm +++ b/lib/List/Filters.pm @@ -16,7 +16,7 @@ use base qw(Exporter); our @EXPORT_OK = 'filter'; # Specify package version -our $VERSION = 0.03; +our $VERSION = 0.04; # Dispatch table of functions to handle different ref types for the spec # hashref's values @@ -89,7 +89,7 @@ List::Filters - Build list sublists matching conditions =head1 VERSION -Version 0.03 +Version 0.04 =head1 DESCRIPTION @@ -127,7 +127,8 @@ You could maybe think of it as a multi-C<grep> that returns named results. Given a hash reference structure and a list of items, apply each of the subroutines or regular expressions given as values of the hash reference, returning a new hash in the same structure with the tests replaced with the -items that for which the subroutine was true or the regular expression matched. +items for which the subroutine returns true, in the same way as C<grep>, or (as +a shortcut) for which the regular expression matched. =head1 AUTHOR @@ -8,7 +8,7 @@ use Test::More tests => 1; use List::Filters 'filter'; -our $VERSION = 0.03; +our $VERSION = 0.04; my @words = qw(foo bar baz quux wibble florb); my $filters = { |