THere'd be a series of these, i.e. an array of this type that had both a counter name and associated value.
I'm not sure how to create a "user defined" type array like I have above in PERL.
Second a way to save this and then re-load it. I can read text from a file, but I can't figure out how to "parse" it into the appropriate variables.
I'm happy to help with any questions you may have on C/C++ or VB development- I'm well versed in those areas, but need some help with PERL.
You have to quote the key names because they have spaces in them.
: THere'd be a series of these, i.e. an array of this type that had both a counter name and associated value.
: Counter->name = "main counter"
: Counter->name = "free site"
Use a hash data structure to map names to values, then hold an array of hashes. Note that you don't specify the keys "up front" like in a struct.
The easiest way to store a complex data structure of any kind is to serialize it. Check out the Storable module.
: : THere'd be a series of these, i.e. an array of this type that had both a counter name and associated value.
: : Counter->name = "main counter"
: : Counter->name = "free site"
: : above in PERL.
: Use a hash data structure to map names to values, then hold an array of hashes. Note that you don't specify the keys "up front" like in a struct.
: The easiest way to store a complex data structure of any kind is to serialize it. Check out the Storable module.
THanks so much, that's a lot of great information, I really appreciate it.