Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re (tilly) 1: Speeding-up OO accessor methods
by tilly
|
|