tie() and untie() are described in PerlTIE Man Page |
These generate "enchanted" variables ( magical blessing!) which allows one to access what seems to be an ordinary variables in a Perl Program but behind the scenes, the implementation of variable dioes a lot of work which could include computation, data access etc. |
Examples in PerlTIE include: |
tie a scalar $priority which returns process or user priority by accessing UNIX system |
tie a hash to a database so that |
$tiedhash{lookupkey} returns value of lookupkey in database |
This latter tie is most powerful and could involve SQL access to the database sever when tied hash accessed |