Perl-Sensitive Sunglasses | |
PerlMonks |
An overloaded object and tieby Anonymous Monk |
on Jun 09, 2004 at 17:33 UTC ( [id://362816]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I've been struggling for hours - but I can't seem to get anywhere! Either I'm missing something simple, or it can't be done. Lets hope it's something simple:)
I have an overloaded object that can perform basic arithmetic:
To set and read elements from this object I have a few simple methods:
I had assumed that in conjunction with tie, I could do something like:
but I can't seem to get it to work. Would this kind of syntax be possible using a tied array? Thanks.
Back to
Seekers of Perl Wisdom
|
|