How to export constants to a module?



How do I export a constant to a pm module? Or maybe the question is, How
do I make a constant in the caller routine visible to modules?

This is one of those things that is either so simple that "everybody"
(except me) knows how to do it, or so simple that I am not seeing the
forest for the trees. It is probably in perldocs but so far I have come up
blank. Can't get around the "Bareword not allowed while strict subs..."

I hate to have to assign the constant to a variable to move it across the
interface, especially since I have a LOT of constants. So far I have
learned a ton of good stuff trying to fix it, but unfortunately nothing
about making constants visible to a module.

Thanks all
Harris

.



Relevant Pages

  • Re: How to export constants to a module?
    ... Harris More wrote: ... learned a ton of good stuff trying to fix it, ... Mark ...
    (comp.lang.perl.misc)
  • Sony 3.2 Cybershot Question
    ... My camera keeps telling me my memory stick is locked... ... how do I fix ... Thanks a ton ... Prev by Date: ...
    (rec.photo.digital)
  • Re: Is Fixing a broken Hard Drive possible?
    ... How about a link to some of ton of reviews you have read? ... > again with 90 gig of space free. ... >> You can't fix a hardware type problem with software. ...
    (microsoft.public.windowsxp.hardware)
  • Re: AVG update crashes system?
    ... Well you can't even get on their website now so I hope they fix this real ... > After saying all those good things about AVG... ... So I wonder if they've had a ton ... >>> Dani ...
    (sci.med.transcription)
  • Re: How to export constants to a module?
    ... > learned a ton of good stuff trying to fix it, ... Mike Heins ... Be patient. ...
    (comp.lang.perl.misc)