zioigor has asked for the wisdom of the Perl Monks concerning the following question:
- .db file gets created and i checked the binaries# ------------------------- sub DBFile_Compare_Distance #-------------------------- { my ($k1, $k2) = @_ ; my $dist = adist ( uc $k1 , uc $k2 ); my $val = undef; if( $dist < -1 ) { $val = -1; } elsif( $dist > 1 ) { $val = 1; } else { $val = 0; } $val; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: looking for inspiration on 'compare'
by fizbin (Chaplain) on Mar 03, 2005 at 14:07 UTC | |
Re: looking for inspiration on 'compare'
by PodMaster (Abbot) on Mar 03, 2005 at 08:19 UTC | |
by zioigor (Initiate) on Mar 03, 2005 at 08:36 UTC | |
by PodMaster (Abbot) on Mar 03, 2005 at 08:52 UTC | |
by zioigor (Initiate) on Mar 03, 2005 at 10:40 UTC | |
Re: looking for inspiration on 'compare'
by jZed (Prior) on Mar 03, 2005 at 14:42 UTC |