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.

  • Comment on Re^4: How can I keep the first occurrence from duplicated strings?

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

    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

    Well said. Curiously, the format of the data in this long thread is spookily similar to Long list is long by long lost Chuma ... who we are longing to return. :)