What's the best way i can make db's in files .... and how i can get vars from it very easy ?
I was thinking have file
var => 1
var2 => 2
in perl i could use split comand to get rid of => ....
can anyone help me?
Assuming the data is dynamic and needs to be written to the file on occasion, that way is a lot harder. You either have to dedicate a namespace to it, or have a list of all the variable names that you want to write out. Also, you have to be careful of the content. Instead of only being sensitive to newlines, now you have to watch for unbalanced quotes/braces and of course evaluation brackets.