title: Regex in Perl not matching a Unicode String
body: <p>I'm trying to match a Unicode string using Perl regex. The string seems to arrive at my module unscathed with proper encoding if I output it to STDOUT: &quot;Asuncion, Distrito Capital de Paraguay, Región Oriental, Paraguay.&quot;</p>
  <p>However, it won't match in Regex. Oddly, if I copy the output of the script into a variable and evaluate that, that <em>does</em> match in the same Regex:</p>
  <pre><code>use v5.12;
  use utf8;
  
  my $placeString = $main::FORM{'placeString'}; # Coming from a different module.
  say STDOUT $placeString;
  
  utf8::upgrade($placeString); # Using this or removing this seems to make no difference.
  
  # If I manually copy the output of STDOUT (above) in BASH and set the string, it works:
  $placeString2 = &quot;Asuncion, Distrito Capital de Paraguay, Región Oriental, Paraguay&quot;; 
  
  if ($placeString =~ /^([\w\s\,\.\-\']+)$/) {
      # This is evaluated as false.
      say STDERR &quot;Accepted placename.&quot;;
  }
  
  
  if ($placeString2 =~ /^([\w\s\,\.\-\']+)$/) {
      # This is evaluated as true.
      say STDERR &quot;Accepted placename.&quot;;
  }
  </code></pre>