#!/usr/bin/perl while (<DATA>) { if($_ =~ /<.+><.+>(.*)/){ $output = $1; print $output; } } __DATA__ <TITLE><![CDATA[<p>Dogs may not smarter than 6-year-olds, but research +ers suggest canines might be on par with 2-year-olds.< Psychologist S +tanley Coren says, "We do know that dogs understand far more than we +credit them with, from about 165 words to 250 words." Even better tha +n understanding our words, dogs know our hand gestures and body postu +res. Dogs may, in fact, far exceed 2-year-olds when it comes to readi +ng emotions.<BODY><![CDATA[<p>Developmentally, 2-year-olds are genera +lly more interested in themselves, while dogs do care how their peopl +e feel, and instantly recognize a change in emotion.< "While your dog + can't comprehend that you just received a traffic violation, he can +tell that you're upset the second you walk through the door," Coren s +ays. "In fact, dogs can detect some subtle changes which even adults +can't," adds Coren. "We can't smell cancer or predict seizures, as do +gs can."< When I posted this story on my Facebook Fan page recently ( +<a href="http://www.new.facebook.com/pages/ Steve-Dale/50057343596?re +f=ts">www.new.f acebook.com/pages/Steve-Dale/50057343596?ref=ts, or s +imply type Steve Dale into the Facebook search), I received some inte +resting responses:< Kelle: "Heck, my Italian Greyhound is smarter tha +n most college students."< Karen: "Depends on how you define smart.

In reply to Some portion of the text missing by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.