1 | tie() and untie() are described in PerlTIE Man Page |
2 | 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. |
3 | Examples in PerlTIE include: |
4 | tie a scalar $priority which returns process or user priority by accessing UNIX system |
5 | tie a hash to a database so that |
6 | $tiedhash{lookupkey} returns value of lookupkey in database |
7 | This latter tie is most powerful and could involve SQL access to the database sever when tied hash accessed |