Use new $stats->print() method.
authorMike Taylor <mike@indexdata.com>
Fri, 15 Dec 2006 10:37:16 +0000 (10:37 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 15 Dec 2006 10:37:16 +0000 (10:37 +0000)
bin/irspy-stats.pl
web/htdocs/details/stats.mc

index 24a2393..2711a65 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
 #!/usr/bin/perl -w
 
-# $Id: irspy-stats.pl,v 1.1 2006-12-14 17:35:13 mike Exp $
+# $Id: irspy-stats.pl,v 1.2 2006-12-15 10:37:16 mike Exp $
 #
 #      perl -I ../lib irspy-stats.pl localhost:3313/IR-Explain---1
 
 #
 #      perl -I ../lib irspy-stats.pl localhost:3313/IR-Explain---1
 
@@ -15,5 +15,4 @@ if (@ARGV > 2) {
 
 my($dbname, $query) = @ARGV;
 my $stats = new ZOOM::IRSpy::Stats($dbname, $query);
 
 my($dbname, $query) = @ARGV;
 my $stats = new ZOOM::IRSpy::Stats($dbname, $query);
-use Data::Dumper;
-print Dumper($stats);
+$stats->print();
index 354cb54..2522ede 100644 (file)
@@ -1,4 +1,4 @@
-%# $Id: stats.mc,v 1.1 2006-12-14 17:35:44 mike Exp $
+%# $Id: stats.mc,v 1.2 2006-12-15 10:37:29 mike Exp $
 <%doc>
 Here are the headings in the Z-Spy version:
        The ten most commonly supported Bib-1 Use attributes
 <%doc>
 Here are the headings in the Z-Spy version:
        The ten most commonly supported Bib-1 Use attributes
@@ -19,6 +19,7 @@ least resistance and look at all the records by hand.
 </%doc>
 <%perl>
 my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1");
 </%doc>
 <%perl>
 my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1");
-use Data::Dumper;
-print "<pre>", xml_encode(Dumper($stats)), "</pre>\n";
+print "<pre>";
+$stats->print();
+print "</pre>\n";
 </%perl>
 </%perl>