title: How do I find "wide characters" printed by perl?
body: <p>A perl script that scrapes static html pages from a website and writes them to individual files appears to work, but also prints many instances of <code>wide character in print at ./script.pl line n</code> to console: one for each page scraped.</p>
  
  <p>However, a brief glance at the html files generated does not reveal any obvious mistakes in the scraping. How can I find/fix the problem character(s)? Should I even care about fixing it?</p>
  
  <p>The relevant code:  </p>
  
  <pre><code>use WWW::Mechanize;
  my $mech = WWW::Mechanize-&gt;new;   
  ...
  foreach (@urls) {
      $mech-&gt;get($_); 
      print FILE $mech-&gt;content;  #MESSAGE REFERS TO THIS LINE
  ...
  </code></pre>
  
  <p>This is on OSX with Perl 5.8.8.</p>