in reply to Re: Real world uses of the tie function.
in thread Real world uses of the tie function.
In short, a populated hash will respond truthfully in a scalar context:
whereas a populated tied hash will do no such thing. It will always evaluate to false.if (%h) { ...do something... }
So much for drop-in hash sniffers.
Matt
|
|---|