in reply to Re: Re: OO lifetime function stats mod, is this useful?
in thread OO lifetime function stats mod, is this useful?

Then I think what you really want to do is to provide a generic statskeeper hook to use with Hook::WrapSub, as that will allow one to directly call the initial function, rather than creating an object that wraps a coderef and then calling execute() on it.

Makeshifts last the longest.

  • Comment on Re^3: OO lifetime function stats mod, is this useful?

Replies are listed 'Best First'.
Re: Re^3: OO lifetime function stats mod, is this useful?
by shotgunefx (Parson) on Jun 28, 2002 at 16:17 UTC
    Well it might not be a function per say. It might be a statement or a series of functions or a method which needs it's state bound in the closure. Here's a simple example server monitor script. Note the module isn't done. I banged it out in a few hours and a few accessors and such are missing.