|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: how to update a field of a record in a large text fileby mickeyn (Priest) |
| on Mar 07, 2006 at 10:36 UTC ( #534876=note: print w/ replies, xml ) | Need Help?? |
|
assuming you are familiar with the use of regular expressions (see 'perldoc perlre' if not), what you want is to perform a substitution using regular expression on this record. 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:
Enjoy,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||