T
Tutico
I need to compare two string and make some operation on it?
Boot strings are same size length. In real world they are much longer then
10 characters, lenght of strings (files) is aprox 1 milion characters (1
MB). I need fastest way to compare stings and make result. If I make
comparing character by character and making operatin on string character by
character, computing is to slow to be realy usefull.
Eq.
----------------------------------------------------
# 1234567890
$a= "a...my....";
$b= "..mom....w";
$result="a.momy...w"; # operation is "OK"
but:
# 1234567890
$a= "a...my....";
$b= "..mox....w";
$result="a...my...."; # result is first string $a and operation is "NOK"
----------------------------------------------------
If is problem to use "." as empty character in Perl it is possible to use
some other caracter like "?" , space " " , "*" , "_" , "-" or some other
character.
Please help.
Thanks
Boot strings are same size length. In real world they are much longer then
10 characters, lenght of strings (files) is aprox 1 milion characters (1
MB). I need fastest way to compare stings and make result. If I make
comparing character by character and making operatin on string character by
character, computing is to slow to be realy usefull.
Eq.
----------------------------------------------------
# 1234567890
$a= "a...my....";
$b= "..mom....w";
$result="a.momy...w"; # operation is "OK"
but:
# 1234567890
$a= "a...my....";
$b= "..mox....w";
$result="a...my...."; # result is first string $a and operation is "NOK"
----------------------------------------------------
If is problem to use "." as empty character in Perl it is possible to use
some other caracter like "?" , space " " , "*" , "_" , "-" or some other
character.
Please help.
Thanks