tied hash
- From: Konrad Eisele <konrad@xxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 17:02:24 GMT
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] .
- Follow-Ups:
- Re: tied hash
- From: Anno Siegel
- Re: tied hash
- From: attn.steven.kuo@xxxxxxxxx
- Re: tied hash
- From: Paul Lalli
- Re: tied hash
- Prev by Date: Re: Problem with enqueuing/dequeuing objects between threads
- Next by Date: Re: tied hash
- Previous by thread: Not able to install 'Msql-Mysql-modules'
- Next by thread: Re: tied hash
- Index(es):
Relevant Pages
|
|