in reply to Does a file really exist?
If you want to process such a list later, push the items into a second array:if -e $file { push @array, $file; } else { warn "$file does not exist\n"; }
if -e $file { push @array, $file; } else { push @not_found, $file; }
|
|---|