in reply to
Re: Unique array w/o repeated elements and still keep the original order!
in thread Unique array w/o repeated elements and still keep the original order!
That won't work how you expect it to...
Particularly, what's happening to $_? It's
getting set by the while loop and then forgotten about,
which is to say that you'll not process all of the lines.
Oops. How about this:
while (my $line_holder = <FILE>) {
foreach etc...
Or alternately you could check for file EOF in the while
condition like so:
while (! eof(FILE)) {
my $line_holder = <FILE>;
foreach etc...
Either way should fix the problem...
jynx