Unreadable code,Here's why I use it: Because I can write a program to summarize the winners on the web page in 5 minutes.
Why would anyone use it?
Learn a better way.
use WWW::Mechanize; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->get( "http://aspn.activestate.com/ASPN/Perl/Haiku/AboutPerl" ); my @names = ($mech->content =~ /Name: (.+?)<BR/igm); my %count; ++$count{$_} for @names; for my $key ( sort { $count{$b}<=>$count{$a} || lc $a cmp lc $b } keys + %count ) { printf "%3d: %s\n", $count{$key}, $key; }
xoxo,
Andy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Summarizing the Perl Haiku contest
by snowsmann (Scribe) on Feb 15, 2004 at 01:34 UTC | |
|
Re: Summarizing the Perl Haiku contest
by mpolo (Chaplain) on Feb 15, 2004 at 08:08 UTC |