in reply to Re^3: %hash (@array && use constant) in Modules
in thread %hash (@array && use constant) in Modules

Incorrect. If it looks like a regular subroutine to you that only means you don't know what an inlined subroutine looks like! I suggest you spend some time with Benchmark and prove to yourself that "use constant" really does result in inlined subroutines.

-sam

  • Comment on Re: Re^3: %hash (@array && use constant) in Modules

Replies are listed 'Best First'.
Re^5: %hash (@array && use constant) in Modules
by tadman (Prior) on Apr 23, 2002 at 22:56 UTC
    Time well spent. Thanks for the insight, samtregar, and Elian. Two letters, '()', can make a whole lot of difference. Wow.

    I've been trying to kill off references to Tie::Const, a deprecated module from ages ago, and now I think this might just do the trick.