in reply to (Re:)* duplicate lines in array
in thread duplicate lines in array

All the files have been opened and the lines of data have been stored in @contact_type.
All I am looking to do something like this:
foreach (@contact_type) { ...check for repeated data in @contact_type; ...print it out;

Replies are listed 'Best First'.
Re: Re: (Re:)* duplicate lines in array
by pelagic (Priest) on Jan 27, 2004 at 14:08 UTC
    Sorry, it's still not clear enough for me:
    All lines of all files are in just 1 array (@contact_tape).
    How do you know, what file the lines came from originally?
    What EXACTLY is the content of your array?
    Looping through the array you MUST somehow realise the moment you change from lines of one file to lines of the next file ...
    Imre