my @modifiedFiles = (); #assuming that this array is empty if (!@modifiedFiles) { exit; }