When I ran the program I noticed that some users were missing from the list. This is due to the regex that extracts the usernames. This is a bit better:
# Don't strip the tags #$html =~ s/<.*?>//gs ; my (@users) = $html =~ /<td>by\s[^>]+>([^<]+)/gs ; # Or this if there are Perlmonks with "<" in their username my (@users) = $html =~ m[<td>by\s[^>]+>(.*?)</a>]gs ;
--
John.
In reply to Re: Playing with PerlMonks site (0) - See what user was more active
by jmcnamara
in thread Playing with PerlMonks site (0) - See what user was more active
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |