NAME

Tie::Timely - Time out scalar values

SYNOPSIS

use Tie::Timely;

my $interval = 5;
tie my $scalar, 'Amelia', $interval;
# now $scalar is 'Amelia'

sleep 6;
# now the interval has elapsed and the value is forgotten

# set the value again and it starts a new interval
$scalar = 'Llama';

DESCRIPTION

This module creates a tied scalar that forgets its value after the interval that you specify. The next time you set the value it resets the interval;

SOURCE AVAILABILITY

This source is in Github:

https://github.com/briandfoy/tie-timely/

AUTHOR

brian d foy, <brian.d.foy@gmail.com>

COPYRIGHT AND LICENSE

Copyright © 2005-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.