in reply to compare two arrays
my $sep = chr(0); if (join($sep, @a) eq join($sep, @b)) { ... } [download]
TIMTOWTDI.