in reply to All array elements the same?
if (join '', @array1) eq (join '', @array2) { do_stuff; }
Not sure if this will work properly in all cases, but it should work for arrays containing strings. Really though, I can't think of any reason why it would work for numbers and such...
waiting to be proven wrong,
Mark
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: All array elements the same?
by davorg (Chancellor) on Aug 01, 2000 at 20:44 UTC | |
RE: Re: All array elements the same?
by Fastolfe (Vicar) on Aug 01, 2000 at 22:34 UTC |
In Section
Seekers of Perl Wisdom