From: Mike Taylor Date: Fri, 15 Dec 2006 10:37:16 +0000 (+0000) Subject: Use new $stats->print() method. X-Git-Tag: CPAN-v1.02~669 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=c178ea4793a493e2bc8cea815f7bf2960ba76290;p=irspy-moved-to-github.git Use new $stats->print() method. --- diff --git a/bin/irspy-stats.pl b/bin/irspy-stats.pl index 24a2393..2711a65 100755 --- a/bin/irspy-stats.pl +++ b/bin/irspy-stats.pl @@ -1,6 +1,6 @@ #!/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 @@ -15,5 +15,4 @@ if (@ARGV > 2) { my($dbname, $query) = @ARGV; my $stats = new ZOOM::IRSpy::Stats($dbname, $query); -use Data::Dumper; -print Dumper($stats); +$stats->print(); diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 354cb54..2522ede 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -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 @@ -19,6 +19,7 @@ least resistance and look at all the records by hand. <%perl> my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1"); -use Data::Dumper; -print "
", xml_encode(Dumper($stats)), "
\n"; +print "
";
+$stats->print();
+print "
\n";