in reply to Re: Read file line by line and check equal lines
in thread Read file line by line and check equal lines
Instead, your sub uses two global variavles, one lexical ($previous) and the package variable $_. That should be avoided except in very special cases. In this case it is hard to see why you use a sub at all. Just expand the code in the loop body. That would be clearer.
Anno
|
|---|