push(@array,$variable); #### ##### cannot verify error - and Populate Output file##### if (@txtfile[$i] =~ /\bcannot verify/) { chomp ($errout = @txtfile[$i]); push(@outfile,$errout); } ##### corrupt file error - and Populate Output file##### if (@txtfile[$i] =~ /\bcorrupt file/) { chomp ($errout = @txtfile[$i]); push(@outfile,$errout); } ##### skipped File error - and Populate Output file##### if (@txtfile[$i] =~ /\b- skipped/) { chomp ($errout = @txtfile[$i]); push(@outfile,$errout); }