title: strip HTML Tags with perl
body: <p>Whats the easiest way to strip the HTML tags in perl. I am using a regular expression to parse HTML from a URL which works great but how can I strip the HTML tags off?</p>
  
  <p>Here is how I am pulling my HTML</p>
  
  <pre><code> #!/usr/bin/perl -w
  use strict;
  use warnings;
  use LWP::Simple;
  my $now_string = localtime;
  
  my $html = get("http://www.spc.noaa.gov/climo/reports/last3hours.html")
      or die "Could not fetch NWS page.";
  $html =~ s/&lt;script.*?&lt;\'/script&gt;/sg;
  $html =~ s/&lt;.+?&gt;//sg;
  $html =~ m{(Hail Reports.*)Wind Reports}s || die;
  my @hail = $1;
  </code></pre>