How to export constants to a module?
- From: Harris More <nogot@xxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 21:45:33 -0400
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
.
- Follow-Ups:
- Re: How to export constants to a module?
- From: Bart Lateur
- Re: How to export constants to a module?
- From: Fabian Pilkowski
- Re: How to export constants to a module?
- From: Mike Heins
- Re: How to export constants to a module?
- From: Mark Clements
- Re: How to export constants to a module?
- Prev by Date: utf8 issue with substitution pattern
- Next by Date: Re: Regex question
- Previous by thread: utf8 issue with substitution pattern
- Next by thread: Re: How to export constants to a module?
- Index(es):
Relevant Pages
|