in reply to Re^3: Bareword error in WWW::Mechanize
in thread WWW::Mechanize “use constant xx” gets bareword error

Try Strawberry perl, they even have a portable edition. It a sane distribution for Windows and ships with a proper toolchain and lots of additional, handy modules and tools.