Karl Glazebrook wrote:
> 
> The tie interface is not very useful for multidim arrays, you have
> to say
> 
> $x[42][44][49]
> 
> and do multiple levels of tieing whereas one just desires to say
> $x[42,44,49]

But if that is indeed what you desire to say, then there is only
one level, and tie becomes eminently feasible.

        sub FETCH {
                my( $self, $key ) = @_;
                my @indices = split $;, $key;
                ...
        }

(I do something like this in my Tie::Multidim module :-)

-- 
John Porter

        Aus tiefem Traum bin ich erwacht.

Reply via email to