programming-examples/perl/Datatype/Reading float point number from keyboard.pl
2019-11-15 12:59:38 +01:00

10 lines
182 B
Perl

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