in reply to Re^3: Eliminating Duplicate Lines From A CSV File
in thread Eliminating Duplicate Lines From A CSV File


Cristoforo,


One final question. My input CSV files actually have
two Header lines. The files look like this:


File A
Server Performance on Jun 9 2007,,,,
Server,Avg CPU,P95 CPU,Avg Mem Util,P95 Mem Util
wsomdavpra03,95.33,98.75,68.68,70.23
WTEADAPOMS02,35.13,88.15,37.9,57.57


I would have thought the line of code


next if $line =~ /^Server/;


would have eliminated the 1st two header lines.


I also tried using two "<$fh>;" lines after the open
statement. These both produced the following output
in the first line.


,0,0,0,0,0,0


Do you have any idea why this is happening?

  • Comment on Re^4: Eliminating Duplicate Lines From A CSV File