http://www.perlmonks.org?node_id=1202688


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.
  • Comment on Re: What is better: Static input data in separate file or embedding static input data in code.