in reply to make a hash globally accessible
First, make sure that you are using the -w switch at the beginning of your program, that might catch a few things. Also, use strict;.
The only sure advice I can give you is to learn to use the perl debugger. Then, if your hash is named %somehash, when you get to an area of the program where the hash should be populated, you can type x %somehash to have a nicely formatted print of the hash contents, if any.
If you do post some code, be sure to wrap the code in <CODE></CODE> tags so it will be properly formatted.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
|
|---|