Create a Perl Script, open 2 files store them an array and compare; then print the differences in a 3rd file using a loop?

File 1:
hope you're doing well thanks for visiting, please come again soon!

File 2:
glad you could visit, hope to see you soon!

File 3:

Reverend Jim commented: Rude. -3

Recommended Answers

As I read a few priors from maybe this has been done many times before. I think you need to know about "diff" but many folk never learned the basic text commands …

Jump to Post

All 4 Replies

typo! i need to print the matching words!

i need to print the matching words

What you need to do is

  1. Show a little courtesy by asking for help instead of wording it like you are demanding that we do it for you.
  2. Show that you have gone to the effort of trying to do this yourself.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.