#!/usr/bin/perl use strict; open (FILE, "exp.log") || die; my @array = ; close(FILE); print "\n\n\nExpected log read and stored"; open (FILE2, "actual.log") || die; my @array2 = ; close(FILE2); print "\n\n\nActual log read and stored\n\n\n"; my @sorted = sort(@array); my @sorted2 = sort(@array2); if(@sorted eq @sorted2) { print "Success! Actual log and expected log contain the same data\n\n";} else { print "Failure! Actual log and expected log contain different data\n\n"; } #print "@sorted\n"; print "\n\n\n\n\n\n\n\n\n-------------------------------------\n\n\n\n\n\n"; #print "@sorted2\n"; exit; #### .MAMACACHE_REGRESSION.AGT.M Type: INITIAL Status OK MdMsgType | 1 | U8 | 1 MdMsgStatus | 2 | U8 | 0 MdSeqNum | 10 | U32 | 0 MamaAppMsgType | 18 | U8 | 0 MamaSenderId | 20 | U64 |6991275514488954478 .MAMACACHE_REGRESSION.BCO.M Type: INITIAL Status OK MdMsgType | 1 | U8 | 1 MdMsgStatus | 2 | U8 | 0 MdSeqNum | 10 | U32 | 0 MamaAppMsgType | 18 | U8 | 0 MamaSenderId | 20 | U64 | 6991275514488954478