in reply to Re: Print left-anchored similarities between two strings
in thread Print left-anchored similarities between two strings
my @strings = qw( /home/usernames/doejohnwilson /home/usernames/doejanemary ); my $common = $strings[0] ^ $strings[1]; print substr $strings[0], 0, rindex($common,"\x00"); __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print left-anchored similarities between two strings
by BrowserUk (Patriarch) on Nov 11, 2009 at 00:51 UTC |