File Coverage

blib/lib/Symbol/Approx/Sub/Text/Soundex.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             #
2             # Symbol::Approx::Sub::Text::Soundex
3             #
4             # Transformer plugin for Symbol::Approx::Sub;
5             #
6             # Copyright (c) 2001, Magnum Solutions Ltd. All rights reserved.
7             #
8             # This module is free software; you can redistribute it and/or
9             # modify it under the same terms as Perl itself.
10             #
11             #
12             package Symbol::Approx::Sub::Text::Soundex;
13              
14             require 5.006_000;
15 8     8   4589 use strict;
  8         20  
  8         238  
16 8     8   42 use warnings;
  8         18  
  8         478  
17              
18             our ($VERSION, @ISA, $AUTOLOAD);
19              
20             $VERSION = '3.1.1';
21              
22 8     8   51 use Carp;
  8         17  
  8         442  
23 8     8   3852 use Text::Soundex;
  8         21287  
  8         1437  
24              
25             =head1 NAME
26              
27             Symbol::Approx::Sub::Text::Soundex
28              
29             =head1 SYNOPSIS
30              
31             See L
32              
33             =head1 METHODS
34              
35             =head2 transform
36              
37             Returns the array it is passed with all values converted to their soundex
38             equivalent.
39              
40             =cut
41              
42             sub transform {
43 12     12 1 36 map { soundex($_) } @_;
  321         668  
44             }
45              
46             1;