thanks for your responses. with your comments, I melded everything together to create this, and as fas as I can see, it looks fine
open FILENAME, "file1";
while(<FILENAME>)
{
next if /^\s*$/;
chomp;
push @myarray, $_;
}
close FILENAME;
open FILENAME_TWO, ">results"...