From 4996473bebeaec891316889bca4a0fdbea0bca43 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Tue, 30 Aug 2011 14:18:41 +0300 Subject: [PATCH] Add progress deco --- bin/umph | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/umph b/bin/umph index b63b41d..0031394 100755 --- a/bin/umph +++ b/bin/umph @@ -100,13 +100,14 @@ sub main my $doc = $p->parsefile(from_arg($ARGV[0])); my $root = $doc->getDocumentElement; + my $n = 0; for my $entry ($root->getElementsByTagName("entry")) { my $t = to_item($entry, "title")->getFirstChild->getNodeValue; my $l = to_item($entry, "link")->getAttributeNode("href")->getValue; my %data = (title => $t, url => $l, selected => 1); push @items, \%data; - spew_qe "."; + spew_qe((++$n % 9 == 0) ? " " : "."); } $doc->dispose; -- 2.11.4.GIT