An entity claiming to be Mark Fowler ([EMAIL PROTECTED]) wrote:
:
: This got me thinking that you might also want to set something to be
: another value when it times out. So you might want to set it to say, '10'
: or a nice user friendly string 'No longer valid'.

But defined() is a nice test ...


: 
: 
: <mildlyInsane>
[snip]

What about a tied scalar that, if assigned a Set::Scalar object, evaluates
to the next member of the set (assuming ordering) after the specified
timeout and then undef after MAXAGE*N?  Or a round-robin approach?  Or
perhaps letting you specify a state machine to cycle throught the members?
Now what if we apply this to subs?  Ack!

I like this module, plenty of opportunity for CiP!

Mark

-- 
Mark Rogaski                  | "And this is what it said:
[EMAIL PROTECTED]             |  ``You fool, Warren is DEAD!''"
http://www.pobox.com/~wendigo |      -- H. P. Lovecraft
__END__                       |         The Statement of Randolph Carter

PGP signature

Reply via email to