in reply to Time Totaling Lost

In the process of converting my script to run under strict I lost one of my most important operations. The variable $all_time is suposed to be a total of all times in my array.

In normal_results, you're starting over with $total_time each time you fetch a row. Move the declaration of $total_time from inside to while loop, and put it at the top of the subroutine. Then it will accumulate time, rather than getting reset each time the loop is entered.

Replies are listed 'Best First'.
Re: Re: Time Totaling Lost
by dws (Chancellor) on Nov 24, 2001 at 07:54 UTC
    Worked like a charm, Thanks a million. Do you take personal checks?

    Glad to help. I don't take checks, but the Offering Plate can always use a donation.

      It's christmas time....almost. This is one of the few websites that I have used and kept using that I definatly think is donation worthy. Thanks, all in the Monastery.
Re: Re: Time Totaling Lost
by nlafferty (Scribe) on Nov 24, 2001 at 07:44 UTC
    Worked like a charm, Thanks a million. Do you take personal checks? hehe. I'm still learning the mechanics of perl (physics?) Sometimes I overlook things.