Would this kind of syntax be possible using a tied array?
Not really. What you're probably after is overloading array references, rather than tieing. This would allow you to do:
$three->[14]; $three->[14] = 3;
In reply to Re: An overloaded object and tie
by adrianh
in thread An overloaded object and tie
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |