On May 10, 9:18 pm, u...@stemsystems.com ("Uri Guttman") wrote: > >>>>> "CD" == C DeRykus <dery...@gmail.com> writes: > > CD> On May 9, 1:29 pm, demianricca...@gmail.com (D) wrote: > >> Hello everyone, > >> > >> I would like to learn an efficient way to change a single column in a > >> file that is accessed by an external program after the column is > > CD> the tie that you mentioned is actually a decent > CD> alternative if speed's not an overriding issue. > > but he did say speed is an issue. according to the OP this is done many > times and he needs a faster version. i highly doubt any tied interface > especially with another layer will do any good here. >
But, he didn't say speed's the "only" issue - and later on mentioned "efficiency". I suspect DB_File would be simpler and more maintainable at least if not an improvement over IO::All and splitting/rejoining/rewriting the whole file each time too. That's mainly what I wanted to demo. Sometimes speed may be a seat-of-the pants perception that really requires some profiling or a benchmark to shed further light too. Of course, it may really be dog slow but, without seeing all the code, the real culprit could be somewhere else. Other suspects could be in the fray - a busy host, a network component, locking, etc... -- Charles DeRykkus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/