programming-examples/perl/Basics/Adding a number and a string.pl

8 lines
191 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
$string = "Top 10";
$number = 10.0;
print "Number is 10.0 and string is 'Top 10'\n\n";
$add = $number + $string;
print "Adding a number and a string: $add\n";