if ($modified = $string) { print "the file is the same"; #### if ($modified eq $string) { print "the file is the same\n"; }