develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [Help] Salvage the Array Hash Monster.

Thread Previous | Thread Next
Nick Ing-Simmons
August 1, 2001 02:59
Re: [Help] Salvage the Array Hash Monster.
Message ID:
Ted Ashton <> writes:
>Thus it was written in the epistle of Michael G Schwern,
>> On Fri, Jul 27, 2001 at 09:03:15AM +0200, Arthur Bergman wrote:
>> > tie %data,'myclass',$foo;
>> > tie @data,'myclass',$foo;
>> > 
>> > On another note, why can't I get to the value I am being tied to from inside
>> > TIE*, do I realy need to traverse the stack to find that value?
>> You mean getting at %data from inside TIEHASH?  Would be very nice.
>> There's a Perl 6 RFC on that, IIRC.
>For the uninitiated, how does tied() differ from what you're wanting?

Tied returns object given the hash, Arthur wants to get the hash given the

my $obj = tie %foo,...;


my $inner = tied %foo;   # gets $obj 

>Ted Ashton (, Info Sys, Southern Adventist University
>          ==========================================================           
>Six is a number perfect in itself, and not because God created the world in
>six days; rather the contrary is true. God created the world in six days
>because this number is perfect, and it would remain perfect, even if the
>work of the six days did not exist.
>                                       -- St. Augustine (354-430)
>          ==========================================================           
>         Deep thoughts to be found at
Nick Ing-Simmons

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About