in reply to Re: Bareword error in WWW::Mechanize
in thread WWW::Mechanize “use constant xx” gets bareword error
use constant is_perl55 => ($] < 5.005_50); use constant is_perl56 => ($] < 5.007 && $] > 5.005_50); use constant is_sane_perl => $] > 5.007;
Weird. The "fat comma" ("=>") quotes its left hand side, so strict shouldn't complain. Looks like your perl is broken. Did your Win10 do any updates lately? Carefully check C:/Perl64/lib/ExtUtils/Constant/Utils.pm for any weirdness, and you could move the original file out of the way, make a copy and quote the LHS of the arguments to use, e.g.
use constant 'is_perl55' => ($] < 5.005_50); use constant 'is_perl56' => ($] < 5.007 && $] > 5.005_50); use constant 'is_sane_perl' => $] > 5.007;
If that fixes the issue, it is time to file a bug report to ActiveState.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bareword error in WWW::Mechanize
by Anonymous Monk on Nov 28, 2017 at 18:19 UTC | |
by marto (Cardinal) on Nov 28, 2017 at 18:28 UTC | |
|
Re^3: Bareword error in WWW::Mechanize
by Anonymous Monk on Nov 28, 2017 at 10:01 UTC |