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.
In reply to Re: "Hash Matrix" Design Question
by jethro
in thread "Hash Matrix" Design Question
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |