in reply to Re: Re: OO sub, hash or hash reference.
in thread OO sub, hash or hash reference.

after seeing the above code I did some reading:

"The reason the original test is fragile ( ref($_[0]) eq 'HASH' ) is that it will make your code refuse to work on a hash if it happens to be blessed."

It was simpler than I thought.
  • Comment on Re: Re: Re: OO sub, hash or hash reference.