The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.perl.misc
From: ber...@fantasyfarm.com
Date: Tue, 13 May 2008 05:36:40 -0700 (PDT)
Local: Tues, May 13 2008 8:36 am
Subject: Constants across package boundaries
I've been chasing a compile problem and I just saw the light on what
my trouble is: I use a bunch of "use constant this => ...; use constant that =>...;" to set parameters for the program. BUT: the program uses a 'package' or two [it has a small embedded objects in it]. The trouble is that the package can't access the 'constant' -- that section of the program gets [not surprisingly] bareword errors. I can fix them by using "main::..." but that's really ugly. Is there any really clean way to set up truly "global" constants? Thanks! /Bernie\ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||