diff options
-rw-r--r-- | lib/List/Breakdown.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/List/Breakdown.pm b/lib/List/Breakdown.pm index 6763225..735b405 100644 --- a/lib/List/Breakdown.pm +++ b/lib/List/Breakdown.pm @@ -135,6 +135,16 @@ This puts the following structure in C<%filtered>: has_ba => ['bar', 'baz'], ) +=head1 SUBROUTINES/METHODS + +=head2 B<breakdown(\%spec, @items)> + +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 for which the subroutine returns true, in the same way as C<grep>, or (as +a shortcut) for which the regular expression matched. + =head1 EXAMPLES =head2 @@ -264,16 +274,6 @@ C<%results>: Note the extra level of hash referencing beneath the C<problem> key. -=head1 SUBROUTINES/METHODS - -=head2 B<breakdown(\%spec, @items)> - -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 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 Tom Ryder C<< <tom@sanctum.geek.nz> >> |