in reply to Re: passing hashes and hash reference
in thread passing hashes and hash reference
"HASH" eq ref($ref) is a fragile test and should be replaced with UNIVERSAL::isa($ref,"HASH").
Update: The reason the original test is fragile is that it will make your code refuse to work on a hash if it happens to be blessed.
Update2: Changed "HASH" eq ref to "HASH" eq ref($ref) to avoid confusion. Thanks, BMaximus.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: passing hashes and hash reference
by BMaximus (Chaplain) on Apr 20, 2001 at 21:35 UTC | |
|
Re^2: passing hashes and hash reference
by tadman (Prior) on Apr 20, 2001 at 21:56 UTC | |
by tye (Sage) on Apr 20, 2001 at 22:00 UTC |