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


And another ...
sub all_eq4 { local$"=''; "@_"eq$_[0]x@_ } # 25 chars
Update: Unfortunately, this methodology is flawed. It returns the wrong value for a list such as ('a a', 'a a a', 'a').

John.
--