Next | The Perl Hardware Store | DC.pm Version | 47 |
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
Next | Copyright © 2003 M. J. Dominus |