in reply to how to update a field of a record in a large text file
to do it on a text file - I recommend tie'ing the file to an array and perform the substitution on the array. take a look at Tie::File.
example:
use Tie::File; tie @array, 'Tie::File', 'test'; foreach (@array){ s/RECORD/NEW RECORD/g; } untie @array;
Enjoy,
Mickey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to update a field of a record in a large text file
by CountZero (Bishop) on Mar 07, 2006 at 10:54 UTC |