K
Konrad Eisele
I have a tied hash, say %a. On a tied 'STORE' I want to get the return
values of the STORE function. is that possible? a naive aproach would be
@a = ($a{'key'} = 'value'); however this returns still the tied FETCH
of $a{'key'}. How do i have to reorder the expression??
-- Konrad
%a = ();
tie %a,'Ta';
@a = ($a{'key'} = 'value');
package Ta;
use Tie::Hash;
@ISA = qw(Tie::StdHash);
sub STORE {
return [1,2,3];
}
I'd like to get @a == [1,2,3]
values of the STORE function. is that possible? a naive aproach would be
@a = ($a{'key'} = 'value'); however this returns still the tied FETCH
of $a{'key'}. How do i have to reorder the expression??
-- Konrad
%a = ();
tie %a,'Ta';
@a = ($a{'key'} = 'value');
package Ta;
use Tie::Hash;
@ISA = qw(Tie::StdHash);
sub STORE {
return [1,2,3];
}
I'd like to get @a == [1,2,3]