develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991118.005] Pseudohashes confuse tie()

Thread Previous
From:
Nick Ing-Simmons
Date:
November 18, 1999 12:36
Subject:
Re: [ID 19991118.005] Pseudohashes confuse tie()
Message ID:
199911182036.UAA00557@bactrian.ni-s.u-net.com
M . J . T . Guy <mjtg@cus.cam.ac.uk> writes:
>
>Presumably it is being confused by the pseudo-hash logic.
>
>And should tie() on pseudo-hashes Do The Right Thing anyway?

Treating a tied ARRAY as a hash should trigger the pseudo hash code.
(I gave this a passing thought when doing TIEARRAY fixes.)


Likewise a tied HASH should be usable as the index hash.
Now whether either _works_ is a different story - anyone want to 
write a t/*.t type testcase?

>
-- 
Nick Ing-Simmons


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About