print $fh "y\n";
to
print $fh "y";?
In reply to Re: Perl Send-Expect Input discrepancy by apl in thread Perl Send-Expect Input discrepancy by perlpal