in reply to Re: Re: Saving Standard Output (overloading print())
in thread Saving Standard Output (overloading print())

Nyet. If you want log() then you'll need $opts{+log}, just like normal. The default idea is for a hash key to be a string, so it's the log() not the 'log' that needs clarification. Note that $opts{log(5)} isn't ambiguous, only the implicit illegal log of 0 that you get without giving it an argument.

(I'd love to see the code that uses the log of zero for a hash key...)
--
Snazzy tagline here

  • Comment on Re: Re: Re: Saving Standard Output (overloading print())