in reply to Re: Moving from SQL to flat-files
in thread Moving from SQL to flat-files
There is something seductive about flat-files, however. I can open them in a text editor and edit them without requiring a Perl or web interfacec to get to them.
To that end, my question devolves into -- how can I maintain the metadata also in one file? Right now I have the MainFile and its shadow .MainFile. If I want to change something about the MainFile, I have to open one or the other or both. It would be nice to do it all in one place. I tinkered with something like (contents of a supersized MainFile below) --
MainFile This is the MainFile. Blah blah blah. __METADATA__ key:value key:value key:value
But I couldn't figure out a efficient and elegant way of reading that in and separating the data from the metadata, returning the metadata in a hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Moving from SQL to flat-files
by jhourcle (Prior) on May 09, 2006 at 16:46 UTC | |
by punkish (Priest) on May 09, 2006 at 17:01 UTC | |
|
Re^3: Moving from SQL to flat-files
by dragonchild (Archbishop) on May 09, 2006 at 19:05 UTC | |
by punkish (Priest) on May 09, 2006 at 20:05 UTC | |
by dragonchild (Archbishop) on May 09, 2006 at 20:24 UTC | |
by punkish (Priest) on May 09, 2006 at 20:28 UTC | |
by dragonchild (Archbishop) on May 11, 2006 at 18:42 UTC |