in reply to if file does not exist
foreach $id (@row) { if ( -e "../XML/$id.xml" ) { #... } } [download]