My first instinct was to go the sort route, actually. You could shrink your solution by one:
sub all_eq { #123456789_123456789_ (@_=sort@_)[0]eq pop }
His Royal Cheeziness
In reply to Re: Re: Golf Challenge: all elements of an array equal
by CheeseLord
in thread Golf Challenge: all elements of an array equal
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |