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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.