develooper Front page | perl.perl5.porters | Postings from March 2013

Detecting a tied variable in TIEHASH

Thread Next
Paul Marquess
March 9, 2013 14:01
Detecting a tied variable in TIEHASH
Message ID:
I have a bug report for DB_File where a hash tied to DB_FILE gets re-tied,
and things don't work very well.


So something like this is going on


    tie %h, "DB_File",.


    tie %h, "DB_File",.


Ideally I'd like to trap this in TIEHASH, but I don't think there is a way
to detect it. "tied" isn't going to help because the variable to be tied
isn't available.


Is this a feature gap or have I forgotten something?





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