in reply to What is better: Static input data in separate file or embedding static input data in code.
Unless you can demonstrate that the time required to process the external file would make a difference ... which I daresay you can't ... then I would leave the data in a file because you can very easily edit such a file without mucking-up your program's source code. You also retain the possibility of being able to specify one of several data-files, should you choose.
|
---|
In Section
Seekers of Perl Wisdom