in reply to Navigating through pages using WWW::Mechanize
Also see HTML::AutoPagerize for a library that has some knowledge/heuristics about how to find the "current" and the number of total pages.