programming-examples/perl/Datatype/Currency Converter, Mark 2.pl
2019-11-15 12:59:38 +01:00

7 lines
182 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
print "Currency converter\n\nPlease enter the exchange rate: ";
my $yen = <STDIN>;
print "49518 Yen is ", (49_518/$yen), " pounds\n";