updateidx.pl works with newlines between hrefs, not robust