NAME
Devel::WatchVars::Tie::Scalar - scalar tie class internal to Devel::WatchVars
SYNOPSIS
None. This is an internal class.
DESCRIPTION
This internal class contains the implementation used by Devel::WatchVars for watching scalars -- or, more precisely, for watching scalar lvalues.
See the DEVEL_WATCHVARS_VERBOSE envariable for how to control trace-message verbosity.
Internal Methods
TIESCALAR CLASS, DESC, VALUE
-
Called when you tie a scalar variable to this package.
The
watch
function takes care of this for you. FETCH INSTANCE
-
Called when you fetch the old value from a variable tied to this package.
STORE INSTANCE, VALUE
-
Called when you store a new value into a variable tied to this package.
DESTROY INSTANCE
-
Called upon the backing object's destruction.
The
unwatch
function normally takes care of this for you.
CAVEATS
Because of internal bookkeeping on these objects in part maintained by that other module, it is critical that this internal class be used only from that module's public watch
and unwatch
functions.
TODO
Devise a subclassing mechanism.
AUTHOR
Tom Christiansen <tchrist53147@gmail.com>
.
LICENCE AND COPYRIGHT
Copyright (c) 2020 by Tom Christiansen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.