in reply to pattern search then remove duplicacy
Well, it's not surprising your script isn't working, seeing as how you've got a typo here:
push (@wastee, $line);
In fact, using strict, this won't even compile.
That aside, could you post an example of what the output (data.txt, anyway) of your script (with the typo fixed) is supposed to be given the example file you posted?
|
|---|