--- 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
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
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,