: > I have 2 hashes, %one and %two.
: >
: > the ($key, $value) of %one is a span of time.
: >
: > I need to compare this span of time over every $key of %two.
: 
: ...
: 
: Look at the replies given here earlier.
: I ran some benchmarks with while and grep, and your while loop didnt look
: less efficient.
: I think the timeout has another reason.
: Try putting some warns in your code and check the webserver's logfile.

If you *really* want to know what's going on, a profiler will tell
you.  There are plenty of them around. Devel::DProf comes with Perl
(5.6.0, anyway); I like Devel::SmallProf myself. Either one will tell
you where your program is *really* spending its time- which often is
not where you thought it was. Learned a valuable lesson about CGI.pm's
html "shortcuts" that way.

-- tdk

Reply via email to