in reply to Re^3: How can I keep the first occurrence from duplicated strings?
in thread How can I keep the first occurrence from duplicated strings?
"If it were more than a few lines then processing it using Perl is almost certainly the wrong approach."
Why?
"For a file large enough to be a problem, Perl should be reading in one line at a time and loading it into a database when the desired result of getting the first occurrence becomes trivial."
False, given this sort of task perl is capable of reading a line at a time and generating the required output without first inserting each line into a database then querying it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How can I keep the first occurrence from duplicated strings?
by eyepopslikeamosquito (Archbishop) on Aug 30, 2023 at 13:48 UTC |