in reply to What is better: Static input data in separate file or embedding static input data in code.

If your data is small and changes with each run, you might want to consider just putting it on the command line:

$ myprogram.pl 'text1 string1 word1 number1,text2 string2 ... # then process @ARGV for ( split /,/, $ARGV[0] ){ subroutine1( split/ /, $_ ); }
  • Comment on Re: What is better: Static input data in separate file or embedding static input data in code.
  • Download Code