Help for this page
while (<MYFILE>) { chomp; ... $outline[$i] =~ s/\s*$//g; print $outline[$i]."\n"; }