in reply to Re: comparing two arrays and displaying scalar matches
in thread comparing two arrays and displaying scalar matches

Ideas:
  1. use strict; use warnings; would have told you that the curly at line 6 faces the wrong way (is a close_curly, not the open required in an if... clause.
     
  2. Proofread, test anything you plan to post here with perl -c scriptname.
     
  3. Review the use of <c>...</c> (or <code>...</code>) tags at Markup in the Monastery. The HTML break tags don't belong inside code tags unless your code actually has <br> tags.