in reply to An overloaded object and tie
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;
|
|---|