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

Your perllib needs to be empty as youre using it wrong

Replies are listed 'Best First'.
Re^9: Bareword error in WWW::Mechanize
by ikegami (Patriarch) on Nov 29, 2017 at 18:04 UTC

    I concur. use constant is erroneously loading C:/Perl64/site/lib/ExtUtils/Constant.pm because of the junk you've added to @INC. Unset env var PERLLIB.