in reply to Re^2: flat file databases
in thread flat file databases

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

while (<FILE>) { if (/somematch/) { $_=~s/somematch/replace/; print FILE "$_"; } else { next; } }