start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.144 Text::ParseWords Chapter 8
Standard Modules
Next: 8.146 Text::Tabs
 

8.145 Text::Soundex

Implements the soundex algorithm, which hashes a word (in particular, a surname) into a compressed form that approximates the sound of the word when spoken by an English speaker.

use Text::Soundex;  $code = soundex $string;  # get soundex code for a string @codes = soundex @list;   # get list of codes for list of strings
Returns the value of the variable $soundex_nocode if there is no soundex code representation for a string. $soundex_nocode is initially set to undef , but can be reset to another value, e.g.:
$soundex_nocode = 'Z000';


Previous: 8.144 Text::ParseWords Perl in a Nutshell Next: 8.146 Text::Tabs
8.144 Text::ParseWords Book Index 8.146 Text::Tabs

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.