in reply to flat file databases

Hi Travis,

If you are opening the flat file db, you can use the $_ special variable - detailed here

Simply replace the current contents of $_ with the contents that you want to put in there.

Some example code/data would probably help here.

Neil

Replies are listed 'Best First'.
Re^2: flat file databases
by chromatic (Archbishop) on Aug 12, 2004 at 05:03 UTC

    I'm sorry, but I don't think this is accurate at all. Unless you've somehow aliased $_ to something tied to the file that handles reading and writing, this will not work automagically.

    Example code would be nice.

      I'm talking about something like

      *Poor code stripped*

      This is how I tend to do things.

      Neil

      Update I completely stuffed this one.. I missed all sorts of things like writing back to the file, opening the file, etc.

      Sorry if I caused any confusion.

      Neil