in reply to date problem

The 'hour' parameter (undef) to DateTime::new was an 'undef'

It's telling you that $time[0] is undef.

That would happen if $dtA[3]'s value contained neither ":" nor ".".

Make sure $dtA[3] contains what you think it does.

I can't replicate the problem with what you gave me, even after fixing Avg_Time_Taken_Per_Transaction.

Update: Added last paragraph.

Replies are listed 'Best First'.
Re^2: date problem
by Anonymous Monk on Jul 09, 2009 at 17:18 UTC
    Can you suggest me what changes you did to fix the problem in Avg_Time_Taken_Per_Transaction();I get the output in one output file but when i execute on command line i get those errors. Thanks NT
      Changed avg_time_taken_in_QnA(@log_paths); to avg_time_taken_in_QnA(@_);. It was ignoring the arguments passed to it by process_summaryreport, referencing an undeclared variable instead. I doubt that was the cause of your problem.