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

Windows treats Constant.pm as being the same file as constant.pm, that is, you can't have both at the same time in the same directory.

Renaming Constant.pm to constant.pm changes nothing. In both cases the error references the lowercase file.

Replies are listed 'Best First'.
Re^4: Bareword error in WWW::Mechanize
by choroba (Cardinal) on Nov 29, 2017 at 08:24 UTC
    But Perl doesn't treat them the same. Moreover, use constant ... shouldn't look into ExtUtils namespace, as it doesn't say use ExtUtils::constant. Something's very wrong with your setup.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
Re^4: Bareword error in WWW::Mechanize
by Anonymous Monk on Nov 29, 2017 at 01:27 UTC

    Hi,

    Where is the version information as provided by Devel::Modlist?

    ? What do you get as output from command       perl -V ?

    Blind guess, I  cpanm ExtUtils::MakeMaker and friends, cause ActiveState has patched that before and broken it

      perl 5, version 24, subversion 2 (v5.24.2) built for MSWin32-x64-multi-thread is the version information. I can’t use Devel::Modlist since it produces the same error.

        That has no info on @INC like capital -V

        perl -V