if($packed1 eq $packed2){ print "The packed MACs match\n"; else{ print "The packed MACs do not match\n"; }