programming-examples/perl/Datatype/Concatenating a number and a string.pl
2019-11-15 12:59:38 +01:00

8 lines
234 B
Perl

$string = "Top 10";
$number = 10.0;
print "Number is 10.0 and string is 'Top 10'\n\n";
$concatenate = $number . $string;
print "Concatenating a number and a string: $concatenate\n";