Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Removing repeated lines from file

by Anonymous Monk
on Jun 25, 2003 at 05:23 UTC ( [id://268756]=note: print w/replies, xml ) Need Help??


in reply to Re: Removing repeated lines from file
in thread Removing repeated lines from file

Of course, in reality the problem is un-solvable. A decision needs to be made in order to amend the problem statement and render a solvable problem. Which one of the N copies of any particular duplicate line should be preserved?
  • Comment on Re: Re: Removing repeated lines from file

Replies are listed 'Best First'.
Re: Re: Re: Removing repeated lines from file
by Anonymous Monk on Jun 25, 2003 at 16:01 UTC
    Hm yes I was thinking the same thing: if the order is important, so is the decision about which one to throw away. Also, in the sample code that matth provides, he's pulling his input lines apart and categorizing them in some way that makes sense only to him, and might be useful for others to know about.

    Can we see some sample input?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://268756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found