Hi, I have two arrays that I need to compare, and then print the differences:
@array1 contains this: /dev/sdmt1 /c4devpr64 /dev/sdmq1 /c4devpr66 /dev/sdmp1 /c4devpr67 /dev/sdml1 /c4devpr69 @array2 contains this: /dev/sdmt1 /c4devpr64 /dev/sdms1 /c4devpr65 /dev/sdmn1 /c4devpr68 /dev/sdml1 /c4devpr69 The comparison should then pick up the differences and print them out: array1 does not contain the following, but array2 does: /dev/sdms1 /c4devpr65 /dev/sdmn1 /c4devpr68 array2 does not contain the following, but array1 does: /dev/sdmq1 /c4devpr66 /dev/sdmp1 /c4devpr67 Regards, Wernher -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/