in reply to nstat - Retrieve statistics about a newsgroup when you're using the leafnode newsserver
Just do the regex once, if your data set supports it. It looks like it does.foreach $key (keys %readers) { if ($key =~ /\b(\w+)\b/) { $name = $1; } else { next; } if ($name eq 'Mozilla') { # do your platform check } elsif ($name eq 'whatever') { # increment the other hash } # and so forth... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: nstat - Retrieve statistics about a newsgroup when you're using the leafnode newsserver
by le (Friar) on Jun 09, 2000 at 10:28 UTC |