in reply to Re: Large datastructure caching
in thread Large datastructure caching
becomesmy $self=bless $id, $class;
and all references to $self as indicies to the array of handles become $$self. The calling code looks much more elegant and the internal calls are a bit better too.my $self=bless \$id, $class;
rdfield
Update: I've simplified the internal calls a bit further...$self = $handles[${shift()}];and the rest of the code remains unchanged
Update 2: Blessed Scalar references are not handled very well in the serialisation of SOAP transactions, so I've had to kludge the code as follows:
Constructor:
Method:
|
|---|