in reply to How to wrap Perl assignment operator?
My Tie::Constrained module sets up the sort of thing Roy Johnson mentioned for scalar variables. The pod for it shows several examples.
There are examples on Perlmonks of wedging code into assignment with it. All these do their work even on code written without the need for their special properties in mind.
After Compline,
Zaxo
|
|---|