Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: A good way to input data into a script w/o an SQL database

by eyepopslikeamosquito (Archbishop)
on Sep 11, 2023 at 00:19 UTC ( [id://11154363]=note: print w/replies, xml ) Need Help??


in reply to Re^2: A good way to input data into a script w/o an SQL database
in thread A good way to input data into a script w/o an SQL database

Thanks for posting your sample code. Much clearer now!

In fact, it spookily reminded me of a node I wrote a while back: Data-driven Programming: fun with Perl, JSON, YAML, XML...

As you can see from that node, I faced a similar problem to what you are asking about.

Generally, I'm a fan of defining a table of properties, as you have done, because it helps to separate the code from the data. After asking my question, I ended up leaving the script alone with its table of properties hard-wired in the script. It was very flexible that way and proved to be easy to maintain over many years. Having the build script itself under version control was essential, of course, to allow us to examine changes to our automated builds over time.

Update: see also: Data Structure References

  • Comment on Re^3: A good way to input data into a script w/o an SQL database

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-17 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found