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~54^2~614 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=f0ec11633f30d69e38863554134dd423d5d019cb;hp=2a16f7bee31a2074eb2ee349e8eac37831af9647 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";