Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Golf Challenge: all elements of an array equal

by CheeseLord (Deacon)
on Jul 14, 2001 at 12:35 UTC ( [id://96713]=note: print w/replies, xml ) Need Help??


in reply to Re: Golf Challenge: all elements of an array equal
in thread Golf Challenge: all elements of an array equal

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://96713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-20 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found