ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы.



Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.156 Tie::RefHashChapter 8
Standard Modules
Next: 8.158 Tie::SubstrHash
 

8.157 Tie::Scalar, Tie::StdScalar

Provides some skeletal methods for scalar-tying classes. The basic Tie::Scalar package provides a new method, as well as methods TIESCALAR, FETCH, and STORE. The Tie::StdScalar package inherits from Tie::Scalar and causes scalars tied to it to behave like the built-in scalars, allowing for selective overloading of methods. The new method is provided as backup in case a class has no TIESCALAR method.

To write your own tied hashes, the methods listed here are required. See the perltie manpage for more detailed information and for examples.


Previous: 8.156 Tie::RefHashPerl in a NutshellNext: 8.158 Tie::SubstrHash
8.156 Tie::RefHashBook Index8.158 Tie::SubstrHash