in reply to If there a way to find the location of the first difference between two strings?
use 5.010; my $t = $s1 ^ $s2; my ($f) = $t =~ /^(\x{00}*)/; say length $f;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: If there a way to find the location of the first difference between two strings?
by jwkrahn (Abbot) on Mar 26, 2012 at 09:33 UTC | |
by flexvault (Monsignor) on Mar 26, 2012 at 10:36 UTC |