I have what I guess must be quite a common situation.
I need to frequently store data to a datadumped structure (must be datadumped since it is fed to C++), but don't want to go through the process of eval-ing it, updating the structure and redumping every time since the structure is fairly massive.
At the moment I log the data to another file until I have N records then eval and update these together.
An option I have experimented with is updating the datadumped structure as text (i.e. without eval-ing it), but I'm aware that this is a somewhat shady programming practice.
I would like the monks advice as to whether there is a good way to update such a structure, at the margin, and efficiently.
Thanks for any help,
Ntav.
humble initiate
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.