in reply to Playing with PerlMonks site (0) - See what user was more active


Nice idea. :-)

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.

  • Comment on Re: Playing with PerlMonks site (0) - See what user was more active
  • Download Code

Replies are listed 'Best First'.
Re: Re: Playing with PerlMonks site (0) - See what user was more active
by gmpassos (Priest) on Jul 25, 2002 at 19:14 UTC
    Well, I just made it for fun. About the tags, if the user has < or > in the username, I think that the system show this in the html source like &lt; and &gt;, or we cant see this in the browser! Thanks for the reply! Make your code for "Playing with PerlMonks site" too.

    "The creativity is the expression of the liberty".