2 # Analyzing DBC's example queries
3 # Step 1: Split the file, merge nexpage queries
6 open F, "searches.csv" or die "could not open searches.csv: $!\n";
8 open OUT, ">x1" or die "could not open x1 for writing: $!\n";
9 print OUT "#query ; hits; pages\n";
12 my $pagecount = 1; # how many next-page searches (same query)
15 my ( $lineno, $query, $ccl, $hits, $timing ) = split (';');
16 if ( $thisline eq $lineno ){
19 print OUT "$query ; $hits ; $pagecount\n";
20 #print "$query ; $hits ; $pagecount\n";
25 #die "STOPPING EARLY " if $lineno > 5000;