title: Find and get the location of a list of words in a text
body: <p>I'm sure this is simple but I just can't figure out what to do...
  I have a text file with a bunch of words in it (let's call it "wordlist") organized in a single column. Then I have a big text file (let's call it "essay"). What I want to do is to look in the "essay" file for the words in my "wordlist".
  The trick is that I want to know the position of the matched word in the "essay" (meaning, match found after X characters).</p>
  
  <p>I'm actually able to do it when I look for a single word (so wordlist containing just 1 word) but I can't get it to work when working with a <strong>list</strong> of words...
  Any advice ?</p>
  
  <p>thanks a lot</p>
  
  <p>Ok so I just realized it would just tell me "no match found" anyway...Here is the code </p>
  
  <pre><code>use strict;
  use warnings;
  
  open (my $wordlist, "&lt;", "/wordlist.txt")
      or die "cannot open &lt; wordlist.txt $!";
  
  open (my $essay, "&lt;", "/essay.txt")
      or die "cannot open &lt; essay.txt $!";
  
  
  while (&lt;$essay&gt;)    { print "match found\n" if ($essay =~ m/$wordlist/) ; }
              { print "no match found\n" if ($essay !~ m/$wordlist/) ; }
  </code></pre>
  
  <p>Help please...?</p>