On Wed, Jan 14, 2004 at 11:57:05AM +0000, Richard Nuttall wrote:
> How about
>
> $test = sub
> {
> if ( some_expensive_lookup_function() >= $MAX_RECORDS )
>
> mark_that_we_have_reached_max_records();
>
> $test = sub{};
> };
>
> Then call &$test() as needed;Neat. I wouldn't have thought of that; thank you. --Dks
