From: [EMAIL PROTECTED] (Marcel Grunauer)
Date: 11/1/00 3:00:32 PM
> I'm considering finally to register as a CPAN author and
> uploading this (followed by other modules that are in the
> pipeline, waiting for some spare time). Any comments or
> suggestions greatly appreciated.
>
> There'll be a Tie::Array::Timeout and Tie::Hash::Timeout
> as well.
>
>
> NAME
> Tie::Scalar::Timeout - Scalar variables that time out
>
> SYNOPSIS
> use Tie::Scalar::Timeout;
>
> tie my $k, 'Tie::Scalar::Timeout', MAXAGE => 2;
>
> $k = 123;
> sleep(3);
> # $k is now undef
>
> DESCRIPTION
> This module allows you to tie a scalar variable whose
> value will be reset to undef after a certain time. When
> tying, you can specify arguments in the form of a hash.
> Use `MAXAGE' to specify the number of seconds after
> which the value will be reset to zero. (Technically,
> the value will still be there, but the module's FETCH
> sub will return `undef'.) Using the `VALUE' hash key,
> you can specify an initial value.
>
> One possible application for this module might be to
> time out session variables in mod_perl programs.
>
> AUTHOR
> Marcel Gr�nauer <[EMAIL PROTECTED]>
>
> SEE ALSO
> perl(1), Tie::Scalar(3pm).
Instead of (or perhaps as well as) a MAXAGE parameter, why not
have an EXPIRES parameter which takes similar values to an HTTP
expires header?
Dave...
--
<http://www.dave.org.uk>
"The chances of anything coming from Mars are a million to one",
he said. But still they come.