in reply to Re: How to instrument a "fake" subroutine?
in thread How to instrument a "fake" subroutine?

Wrong. Please look at the source for Fcntl.pm to confirm. Devel::Profiler already has code to handle constants, but this is a beast of a different stripe entirely.

-sam

  • Comment on Re: Re: How to instrument a "fake" subroutine?

Replies are listed 'Best First'.
Oops...
by pdcawley (Hermit) on May 24, 2002 at 08:49 UTC
    Note to self: Always read the fscking source first. I stand corrected, sorry 'bout that.
      No problem. That was actually my assumption too. When I first caught this bug I thought there was something wrong with my constant-detection code. Then I looked in Fcntl.pm and saw what I was really dealing with.

      Which I suppose begs the question, why is Fcntl so damn clever? Is there something wrong with just exporting a constant sub for each symbol?

      -sam