There are a lot of modules with Tie::
namespace on CPAN - Tie::Hash, Tie::Sub, Tie::Cache, Tie::DBI, etc. What is common among them ?
I checked perltie but 'm not sure that I understood the concept clear. Could someone explain it?
The modules in the Tie:: namespace fall into two categories:
tie
allows an object to take on the interface of a variable. When you read from a tied variable, you are actually calling a method to retrieve information. When you write to a tied variable, you are actually calling a method to with the information.
For example, let's look at a hash tied to Tie::DBI.
It only covers tying hashes, but my article on perl.com from 2001 might answer a few questions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With