To: | spoon [...] cpan.org |
Subject: | WWW::Yahoo::Groups internationalizing |
From: | rayc <slinky [...] mac.com> |
Date: | Thu, 15 May 2003 23:21:27 -0400 |
Hey Iain,
one other thing i came across while using your module was that last_msg_id
sometimes fails on some international groups. instead of listing "6038-6067
of 6067" in the title, they list it as "166-196 / 196"
to deal with this, in the last_msg_id sub, i made the following change:
my (undef, $count) = $content =~ m!
<TITLE>
[^<]+?
\s+ (/|of) \s+
(\d+)
[^<]*?
<\/TITLE>
!six;
similarly, in (the new) first_msg_id:
my ($count) = $content =~ m!
<TITLE>
[^<]+?
(\d+)-\d+
\s+ (/|of) \s+
\d+
[^<]*?
<\/TITLE>
!six;
come to think of it, these two could be combined into one sub to get first
and last return both... just a thought.
cheers,
rayc