There looks to be a subroutine name missing there.
In reply to Re: Syntax error for WWW::Mechanize by GrandFather in thread Syntax error for WWW::Mechanize by lampros21_7