Acme-24

 view release on metacpan or  search on metacpan

fortune/jackbauer  view on Meta::CPAN

When asked the significance of the number 24, Jack Bauer just points to his crotch and nods.
%
Jared didn't lose weight through Subway, he lost it because Jack Bauer tortured him in his basement for half a year.
%
Jack Bauer rolled doubles three times in Monopoly but didn't go to jail, he advanced to "GO". 
%
The state of California plans to reduce violent crime by changing the method of capital punishment from lethal injection to Jack Bauer.
%
Jack Bauer is the Macgiver of torture.
%
Ryan Chappelle and George Mason filled out Jack Bauer's annual employee evaluation. CTU's evaluation forms couldn't properly reflect Jack's awesomeness. We all know what happened to Chappelle and Mason.
%
If Jack Bauer were a woman, he could give birth with no anesthesia and not even wince. He may even be able to do it as a man.
%
When the football game between the Chicago Bears and the Carolina Panthers delayed the fifth season premiere of 24, nobody at CTU was happy.  The next day, the "NFL on FOX" studio was discovered to be littered with bodies, one victim even missing his...
%
Jack Bauer has actually killed someone just to watch them die.
%
Don't come out of the closet, Jack Bauer will find you and put you back.
%
Jack Bauer named his cat 'Chuck Norris.'  Why?  Because He's a pussy.

lib/Acme/24.pm  view on Meta::CPAN

    my $url  = URL;
    my $page = LWP::Simple::get($url);
    my $fact = '';

    if($page =~ m(<p class="fact">([^<]+)</p>))
    {
        $fact = $1;
        $fact =~ s/^\s+//;
        $fact =~ s/\s+$//;

        if(eval('use HTML::Entities'))
        {
            HTML::Entities::decode_entities($fact);
        }

        $fact .= "\n";
    }

    return($fact);

}



( run in 0.595 second using v1.01-cache-2.11-cpan-5a3173703d6 )