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

Detecting a tied variable in TIEHASH

Thread Next
From:
Paul Marquess
Date:
March 9, 2013 14:01
Subject:
Detecting a tied variable in TIEHASH
Message ID:
005601ce1cce$927dc600$b7795200$@btinternet.com
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?

 

Paul

 

 


Thread Next


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