http://www.perlmonks.org?node_id=218800


in reply to P2P Homework

Just a small thing to think about. both logrequest and debuglog call time() and localtime() 6 times. It seems that logrequest() could be called quite a bit, so it may be a worth-while optimization to use @date = localtime(time), and then reformat from there...

You mentioned this was an assignment, so i assume you went for readability ... so that may explain.

Just my €0.02
from the frivolous to the serious