Don't ask to ask, just ask | |
PerlMonks |
Re: All array elements the same?by princepawn (Parson) |
on Aug 02, 2000 at 12:35 UTC ( [id://25680]=note: print w/replies, xml ) | Need Help?? |
The example of davorg took my breath away for its elegance, but as I read further I realized something. It wont work on nested structures correctly.
If the values in a nested structure are equal in value but not in reference, then his method will return false because the number of keys if greater than 1.
In Section
Seekers of Perl Wisdom
|
|