Comparing Variable slices of Fixed Arrays

In reply to dave_59:

Is there something similar also for packed array with more than one dimension specified on the left side? For example:
bit [2:0][31:0][100:0] array1;
bit [2:0][31:0][100:0] array2;
How can I check if array1[2:0][31:0][length_to_compare:0] == array2[2:0][31:0][length_to_compare:0]?