title: Perl regular expression not responding to $
body: <p>I have the following code:</p>
  
  <pre><code>#!/usr/bin/perl
  use Test::Simple tests =&gt; 2;    
  $file = "lalaletc";
  $file2 = "lalal";
  ok($file =~ m/^lala/);
  ok($file2 =~ m/^lala$/);
  </code></pre>
  
  <p>The output was as following:</p>
  
  <pre><code>1..2
  ok 1
  not ok 2
  #   Failed test at ./test.pl line 7.
  # Looks like you failed 1 test of 2.
  </code></pre>
  
  <p>But $file2 has no more characters, so I expected it to succeed test 2. Why does it not?</p>