Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Bareword error in WWW::Mechanize

by choroba (Cardinal)
on Nov 28, 2017 at 23:06 UTC ( [id://1204479]=note: print w/replies, xml ) Need Help??


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

Perl64/lib/ExtUtils/constant.pm line 100

There is ExtUtils::Constant to import C header constants via XS, but I can't see lowercase constant anywhere in the ExtUtils namespace.

($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,

Replies are listed 'Best First'.
Re^3: Bareword error in WWW::Mechanize
by Old_Hat (Initiate) on Nov 29, 2017 at 00:08 UTC

    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.

      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,

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204479]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found