*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; } }
In reply to Re^3: flat file databases
by neilh
in thread flat file databases
by Travis M.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |