Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Anonymous Monk
on Nov 02, 2017 at 23:03 UTC ( #1202654=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1202654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-09-23 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (191 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!