in reply to Finding a LCS module on word level
sub lcs { my ($string, $find) = @_; my $l = length $find; while ( $l > 0 ) { my $pos = index( $string, $find ); if ( $pos > -1 ) { return ( $pos, $l ); } $l--; chop $find; } return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding a LCS module on word level
by ikegami (Patriarch) on May 09, 2008 at 02:52 UTC | |
by dragonchild (Archbishop) on May 09, 2008 at 14:30 UTC | |
by Limbic~Region (Chancellor) on May 10, 2008 at 00:41 UTC | |
by dragonchild (Archbishop) on May 10, 2008 at 02:58 UTC |