As a diagnostic you could print what it's failing to match in the else.
In reply to Re^5: WWW:Mechanize problems by GrandFather in thread WWW:Mechanize problems by stanislav5000