open OUT, ">>mail.out" or die "Can't open: $!"; print OUT while ; close OUT;