All pastes #414537 Raw Edit

Unnamed

public text v1 · immutable
#414537 ·published 2007-03-29 02:25 UTC
rendered paste body
    open(Q,"< $QUERYLOG") or die "$!";
    while (<Q>) {
        chomp;
        if (/client \d+\.\d+.\d+.\d+\#\d+: query\: \S+ (\w+) (\w+)/) {
            if ($1 eq 'IN' and $2 !~ /^TYPE/) {
                $IN{$2}++;
            }
        }
    }
    close(Q);