Re: Strict, require and hashes..

2001-06-13 Thread Paul
--- Dianne Van Dulken <[EMAIL PROTECTED]> wrote: > Hi all, > > I was (yet again) hoping someone might help me with something. > > I have a cfg file called extra_details.cfg containing a hash > %my_hash. > > I reference this in my perl script, using a require > "extra_details.cfg" > > The

Re: Strict, require and hashes..

2001-06-13 Thread Jos Boumans
what you need in your config file is something like the following: ### config.pm ### %hash = ( foo => 'bar' ); 1; #return a true value for 'use' in your script, you'll need to do this: ### script.pl ### use strict; use 'config.pm'; use vars qw(%hash); and then strict wont complain about lack

Strict, require and hashes..

2001-06-12 Thread Dianne Van Dulken
Hi all, I was (yet again) hoping someone might help me with something. I have a cfg file called extra_details.cfg containing a hash %my_hash. I reference this in my perl script, using a require "extra_details.cfg" The problem now is that every time I try to reference my_hash in my script,