Hi Chas, my $count ; open (my $LOG_FILE,">","$write_path/logfile3") ; for ($count=0; <$IN_FILE>; $count++) { } print $LOG_FILE "Count of cdrs before removing duplicates = $count" ;
Above 4 lines are the culprit...if u see in my code, first i am opening a logfile to take the line count of my i/p file... in this case my o/p file comes empty... if I remove the above 4 lines....my hash and thus my o/p file is not empty... my objective is to open my input file, take line count, store it in a log, process it(remove duplicate records), store the output in another file and take the line count of output... i will appreciate yr quick help for this....i need to close this asap.. thanks, mihir On 8/8/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 8/7/07, Mihir Kamdar <[EMAIL PROTECTED]> wrote: > > yes Chas....it says:- > > there are 0 keys in hash > snip > > > > i think something is going terribly wrong with my code...can u quickly > point > > out and advice? > snip > > It is difficult to tell, you are not using the strict or warnings > pragmas and your indenting style is all over the place, but off-hand I > would say the problem is not in the code; I would say it is the input. > It looks like you are blowing away the input files with each run. > Unless you are refreshing the system with valid input files your code > will do nothing. >