import hash
[email protected] (allan) Sun, 17 Mar 2002 22:01:49 +0800
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Message-ID | <[email protected]> |
hi
i have a few large hashes that i would like to store in a
seperate file for readability reasons instead of in my main file.
i need those hashes to be available/visible to any other
files that my main script might 'require'.
is it possible to have a seperate file and possibly do
something like this in the main script:
BEGIN {require 'hash.file'}
i have tried that but then i get:
Variable "%hash_index" is not imported ...
so i guess bascially i want to know how to import a hash (or
any variable)?
../allan