August 1999 | Return to the Perl Hardware Store | Slide #10 |
You're probably familiar with using a blessed hash as an object
Hash elements are like C++ class members
Greg Bacon suggests using an array for space and time efficiency
There are tradeoffs here
What if you need both? Use a glob!
A glob contains a hash and an array
And a scalar
And a subroutine
And a filehandle
And a dirhandle
And a mumble mumble mumble.
Next | Copyright © 1999 M-J. Dominus |