foreach $id (@row) { if ( -e "../XML/$id.xml" ) { #... } } [download]
In reply to Re: if file does not exist by holli in thread if file does not exist by Anonymous Monk