title: Perl comparing strings in array elemenets
body: <p>An array has the following information in its elements</p>
  
  <pre><code>0 ABCD ABDC ACBD ABBC
  
  1 ABCD AAAD ADBC BBAC
  
  2 ABCD CCDB BDCB CABC
  </code></pre>
  
  <p>I'm trying to write a subroutine that compares each string in each element to other strings in other elements, but I'm sure how to go about doing it. For example, the sub should print that ABCD is be present in all elements. While ABDC is not present in all elements. Thanks for your help.</p>