good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: OO sub, hash or hash reference.by IOrdy (Friar) |
on Feb 18, 2002 at 15:19 UTC ( [id://146161]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|