in reply to "Hash Matrix" Design Question
If this data structure is big, you might put it into a config file and use a modul from the CPAN config hierarchy to read that config file. If you don't like a separate file, put it into the __DATA__ section.
Naturally you also need to check afterwards if every mandatory entry in the matrix is filled in, but that is a good idea anyway
The main advantage is that the configuration data is separate from the code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Hash Matrix" Design Question
by rovf (Priest) on Sep 24, 2008 at 13:28 UTC | |
by jethro (Monsignor) on Sep 24, 2008 at 14:00 UTC |