title: How can I change font size specified in an HTML document using Perl?
body: <p>I am modifying some HTML pages and want to increase the font size dynamically with a regex. In my script below, I want the '8' and '3' to turn into '9' and '4' but I get '8++' and '3++', respectively. I have the following:</p>
  
  <pre><code>#!/usr/bin/perl
  use warnings;
  use LWP::Simple;
  
  my $content = "&lt;TD&gt;&lt;FONT STYLE=\"font-family:Verdana, Geneva, sans-serif\" SIZE=\"8\"&gt;this is just a bunch of text&lt;/FONT&gt;&lt;/TD&gt;";
  $content .= "&lt;TD&gt;&lt;FONT STYLE=\"font-family:Verdana, Geneva, sans-serif\" SIZE=\"3\"&gt;more text&lt;/FONT&gt;&lt;/TD&gt;";
  
  $content=~s/SIZE="(\d+)"&gt;/SIZE="$1++"&gt;/g;
  
  print $content;     
  </code></pre>