...my $datetime_string_file_in_staging = ctime(stat($file_in_workarea)->mtime);...
if (-M $file_in_staging == -M $file_in_workarea) { # files have the same timestamp}else { # files have different timestamps}