Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-12-18 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (495 votes). Check out past polls.

    Notices?