open COMP, "+>$file"; print COMP "$var1\n"; push @comp, "$var1\n"; print COMP "\t$var2\n"; push @comp, "\t$var2\n"; my @array = #### @array ne @comp