Re: Using Constants from seperate file

2002-07-28 Thread Steve Piner
What does 'Constants.lib' look like? Does it have a 'package' statement? Does it use Exporter? If it's a package then unless you've got some magic in 'Constants.lib', that BEGIN block will not pull the constants into the current package - the 'import' call is missing. (See perldoc -f use) If it

Re: Using Constants from seperate file

2002-07-28 Thread Ged Haywood
Hi there, On Sun, 28 Jul 2002, allan juul wrote: > i wish to use use constants defined in a seperate file. my problem is, that > sometimes it works sometimes it doesn't. when failing, the error_log says > Bareword is not allowed so i guess it sometimes never loads my constants file > at all.