in reply to conditions not working

You can simplify the the first attempt (assuming $mac and $old are the same) as:
print "data is SAME\n";
And the second as:
"SAME", "\n";

Does that make it clear to you what is wrong?


-Waswas