Can't you run uniq from the command prompt to get rid of the duplicate lines?
perlnewbie.. On Friday 27 May 2005 09:07 am, John Doe wrote: > Hello > > As an addition to my last post: > > Am Freitag, 27. Mai 2005 13.56 schrieb Jack Daniels (Butch): > > Wow, I'm really confused. I'm trying to remove duplicate lines from a > > marc21 text file. I have spent countless hours searching for scripts > > etc. > > > > What I find frustrating while trying to learn Perl, is that most > > solutions assume you know what to do. > > I think this is nothing special; if somebody has coded a _solution_, he > (hopefully) knows what he has done. > > To learn perl, you have to spend hours and hours studying > books/docs/examples, thinking, trying etc. > > > For example, someone gives the code to find and replace, and that's it. > > Generally, as preciser a question is formulated, as bigger the chance that > the answer is precise too. If you have the luck to get an answer from a > guru (I'm not a guru), he will point you to good resources for learning. > > > In other words, if the complete script was there, I think I could learn > > much > > faster. > > On the other side, it can hinder from learning, since one can simply _run_ > the script without even trying to understand it. > > > I have no idea of how to put the code into a script. > > If you have searched for scripts, and found at least one, you already have > an example how to put code into a script. > > [...] > > [snip example data] > > kind regards, joe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>