Can someone suggest the best way to save and load variables with files in PERL? I have to admit I'm furstrated- I know just how "I" would do it in C/C++, but PERL is new to me. Here's what I'm looking for:
THere'd be a series of these, i.e. an array of this type that had both a counter name and associated value.
First I need a way to create the following:
Counter->name = "main counter"
Counter->value = 4587
Counter->name = "free site"
Counter->value = 10562
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.
thanks a lot,