Do you know where your variables are? | |
PerlMonks |
Re (tilly) 1: Speeding-up OO accessor methodsby tilly (Archbishop) |
on Sep 19, 2000 at 01:17 UTC ( [id://33031]=note: print w/replies, xml ) | Need Help?? |
You improve it by using a hash and if one day you want it to be something else then you will just tie the hash to an OO implementation. To tie it all you need to do is provide a class with the OO interface Perl is looking for, then call tie on the data structure you wish to tie. Note that the correct documentation is in perldoc perltie - and this is one area where Perl has improved significantly over releases so looking at your local documentation Really Matters On This One.
In Section
Seekers of Perl Wisdom
|
|