if($file =~ m/hd_defect-(.*?)\.(.*)$/) { $host = $1; $dom = $2; }