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

8 lines
191 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +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";