in reply to overriding time() if module exists

This works for me:
BEGIN { eval "use Time::HiRes qw(time);"; }

Replies are listed 'Best First'.
Re: Re: overriding time() if module exists
by sfink (Deacon) on Nov 08, 2003 at 19:56 UTC
    Umm... okay, I have no idea how I missed that. Thank you. That works perfectly. I'm going to go hide my face in a closet now.
      No need for the closet. The fact that you need to override built-ins at compile time (or at least before the compilation of the code for which you want the override to work) is not well documented.