in reply to comparing strigns

You open the files and read the strings from them, then you compare them, eg using ($string1 eq $string2).
Another option would be to explain your question, by giving an example for instance.