in reply to Re: Real world uses of the tie function.
in thread Real world uses of the tie function.

In addition to those problems, there's also my very first post here on PM. It was about a problem with tied hashes...to which I never really got a satisfactory response: Whither the truth of a tied hash?

In short, a populated hash will respond truthfully in a scalar context:

if (%h) { ...do something... }
whereas a populated tied hash will do no such thing. It will always evaluate to false.

So much for drop-in hash sniffers.

Matt