Hello, Can you please help me with the following scenario in Perl scripting? I want to compare two text files and save output of this comparision in third file with flag PP. So basically, the word common in both the text files should be printed with a flag |PP on the second text file.
File1.txt -
abc
efg
xyz
File2.txt
abc
efh
pqr
Expected output is - File2.txt
abc |PP
efg
xyz
efh
pqr