Or, you could use the Array::Compare module from CPAN which basically does what you do, but allows you to choose the join character so that you avoid the problems that others have pointed out.
--In reply to RE: Comparing Arrays
by davorg
in thread Comparing Arrays
by eak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |