Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: web-interface using data from flat files

by Aristotle (Chancellor)
on Nov 11, 2005 at 17:08 UTC ( [id://507786]=note: print w/replies, xml ) Need Help??

in reply to web-interface using data from flat files

Using a flat file doesn’t sound like a good idea. (It rarely is.) I would suggest using a DBM file instead. Using Storable or something like MLDBM or DBM::Deep you could then store arrayrefs in the keys, and thus keep a list of all values ever set on any key.

Makeshifts last the longest.

  • Comment on Re: web-interface using data from flat files

Replies are listed 'Best First'.
Re^2: web-interface using data from flat files
by sara2005 (Scribe) on Nov 11, 2005 at 18:03 UTC

    Unfortunately, I don't have any control over the flat file I get to build the user interface. My part is limited to reading the flat file, building the interface and sending back the changes in the same flat file format.

    Also, there is no database involved in the whole process.

    I am going to read thru the links you have suggested but decided to give a little more info on why I use the flat files.

      Ah. Then your chosen approach with a copy of the file probably makes the most sense. I’d tell whoever is telling you to do it this way that their approach doesn’t make a lot of sense, though.

      Makeshifts last the longest.

        One important requisite is that I need to get the modified values in the same format as the flat file

        I will still try if I can make use of the DBM modules and finally get the modified values in the required format

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://507786]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-17 02:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found