$yen and $prince contain the newline from pressing Enter. Use
chomp( my $yen = <STDIN> );
and
chomp( my $price = <STDIN> );
to remove any trailing newline.
Ref: chomp
In reply to Re: Output split over two lines
by ikegami
in thread Output split over two lines
by thevoid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |