Basic HTML version of Foils prepared Sept 20 97

Foil 57 tie() and untie() Perl Functions - III

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


FETCH -- get variable value
STORE -- store variable value
DESTROY -- destroy variable
Tied hashes also should provide
  • EXISTS (implements exists)
  • DELETE (delete one key) CLEAR (clear out all keys)
  • FIRSTKEY() and together with
  • NEXTKEY() system implements keys() and each()
Note User provides these functions as they depend on particular behind the scenes manipulations
Note standard classes provide ability to specify user routines BEGIN and END to be run at beginning and end of invocation of a class



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 5 1998