Tie::Timely - Time out scalar values
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';
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;
This source is in Github:
https://github.com/briandfoy/tie-timely/
brian d foy, <brian.d.foy@gmail.com>
<brian.d.foy@gmail.com>
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.
To install Tie::Timely, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Timely
CPAN shell
perl -MCPAN -e shell install Tie::Timely
For more information on module installation, please visit the detailed CPAN module installation guide.