chiggly007 has asked for the wisdom of the Perl Monks concerning the following question:
##Why does my last print link, print the output and then again the output#!/usr/local/bin/perl5.8 -w use strict; print "Currency Converter\n\nPlease enter the ex rate: "; my $yen = <STDIN>; print "\nEnter a price to convert: "; my $price = <STDIN>; print "$price Yens ", ($price/$yen), " pounds\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question why my code is posting a new line
by Athanasius (Cardinal) on Dec 18, 2012 at 02:35 UTC | |
by chiggly007 (Initiate) on Dec 18, 2012 at 03:05 UTC | |
by GrandFather (Saint) on Dec 18, 2012 at 03:49 UTC |