+1 vote
in Perl by

 Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

1 Answer

0 votes
by
Syntax:

$result = $firststring . " ".$secondstring;

Program:

#!/usr/bin/perl

$firststring = "abcd";

$secondstring = "efgh";

$combine = "$firststring $secondstring";

print "$Combine\n";

Output:

abcd efgh

Related questions

0 votes
asked May 4 in JAVA by rahuljain1
0 votes
asked Mar 19, 2020 in PHP by DavidAnderson
...