Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: strange constants.pm warning

by misterperl (Monk)
on Aug 31, 2021 at 18:16 UTC ( #11136312=note: print w/replies, xml ) Need Help??


in reply to Re^3: strange constants.pm warning
in thread strange constants.pm warning

Your suggestion of the potential of unprintables was very astute- I removed the line and carefuly re-typed it. Same warning.

I noticed there were 2 constants defined. I moved the 2nd to the top , and now THAT one throws the warning , but the other is fine. So whichever is first throws a warning!

This makes me wonder- the author doesn't declare:

use constant;
above these pragmas. maybe that would fix this? I don't see that in the Metacpan but perhaps they're incomplete examples?

APPRECIATE all the kind advice guys- I'll wait for the admin to get my module updated and pray for better results :)

Replies are listed 'Best First'.
Re^5: strange constants.pm warning
by tobyink (Canon) on Sep 03, 2021 at 11:38 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-12-06 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (32 votes). Check out past polls.

    Notices?