in reply to conditions not working

One line...
print "Data is ".($mac eq $old ? "SAME" : "DIFF")."\n";

--
paul