if ( $oldcontent eq $newcontent ){ print "Nothing new here!\n"; }else{ print "Something has changed!\n"; }