Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: flat file databases

by neilh (Pilgrim)
on Aug 12, 2004 at 04:38 UTC ( [id://382168]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found