Help for this page
open(FILE, "$some_dirr/$file") or die("can't open $file"); ... if ($PASSmatch && $sweepsmatch && $Finalmatch) { # do whatever with this file. }