if ( -f $DIR.'/TEST-246.92.00.tar.gz' or -f ${DIR}.'/TEST-246.92.00-INTERNAL.tar.gz') { # your processing goes here }