if -e $file { push @array, $file; } else { warn "$file does not exist\n"; } #### if -e $file { push @array, $file; } else { push @not_found, $file; }