in reply to Re: Re: Re: Re: File comparison problem!
in thread File comparison problem!

my $filecontents = $t->get("1.0", "end"); chomp($filecontents); print TEMP $filecontents;
or (if you want to eliminate multiple newlines, but leave at least one):
my $filecontents = $t->get("1.0", "end"); $filecontents =~ s/\n+\z/\n/; print TEMP $filecontents;