February 2012
Intermediate to advanced
1184 pages
37h 17m
English
Before you get all inspired to write your own tie module, you should check to see whether someone’s already done it. There are lots of tie modules on CPAN, with more every day. (Well, every month, anyway.) Table 14-2 lists some of them.
Table 14-2. Tie modules on CPAN
| Module | Description |
|---|---|
IO::WrapTie | Wraps tied objects in an
IO::Handle interface. |
MLDBM | Transparently stores complex data values, not just flat strings, in a DBM file. |
Tie::Cache::LRU | Implements a least-recently used cache. |
Tie::Const | Provides constant scalars and hashes. |
Tie::Counter | Enchants a scalar variable to increment upon each access. |
Tie::CPHash | Implements a case-preserving but case-insensitive hash. |
Tie::Cycle | Cycles through a list of values via a scalar. |
Tie::DBI | Ties hashes to DBI relational databases. |
Tie::Dict | Ties a hash to an RPC dict server. |
Tie::DictFile | Ties a hash to a local dictionary file. |
Tie::DNS | Ties interface to Net::DNS. |
Tie::EncryptedHash | Hashes (and objects based on hashes) with encrypting fields. |
Tie::FileLRUCache | Implements a lightweight, filesystem-based, persistent LRU cache. |
Tie::FlipFlop | Implements a tie that alternates between two values. |
Tie::HashDefaults | Lets a hash have default values. |
Tie::HashHistory | Tracks history of all changes to a hash. |
Tie::iCal | Ties iCal files to Perl hashes. |
Tie::IxHash | Provides ordered associative arrays for Perl. |
Tie::LDAP | Implements an interface to an LDAP database. |
Tie::Persistent | Provides persistent data
structures via tie. |
Tie::Pick | Randomly picks (and removes) ... |
Read now
Unlock full access