in reply to getting hashes out of config files
And the hash should be set. I point out the use strict and use vars because I was bitten just yesterday by the problem that since the data resides in a separate file, do(file) doesn't work well with lexical variables (those created with my). See perlfunc:do for more info, and thanks to merlyn, dchetlin, and tye for helping sort me out on this issue.use strict; use vars '%hash'; do('foo.dat');
(Oh yeah, and check the file Data::Dumper created to make sure it defines '%hash')
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: getting hashes out of config files
by Anonymous Monk on Oct 25, 2000 at 22:31 UTC | |
by Fastolfe (Vicar) on Oct 25, 2000 at 22:34 UTC | |
by Anonymous Monk on Oct 25, 2000 at 22:39 UTC | |
by Fastolfe (Vicar) on Oct 25, 2000 at 22:47 UTC |