Separating an Output with a Tab / Space : Perl
问题 I am working with three text documents . The first one is the main input (Input 1) with words and the word type (Noun , Verb etc.) separated by a tab. Input 1 John N goes V to P school N . S Mary N comes V from P home N . S The second and third input text files look like this : Input 2 John Mary Input 3 to from My objective is to compare and match the second and third text files with the main input and get a output like this : Expected output: John N N goes V to P P school N . S Mary N N