The repository contains a collection of different programming snippets to different programming languages from own developments as well as other projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
programming-examples/perl/String/Concatenate the separate st...

23 lines
452 B

#!c:\perl\bin
$string1="Perl ";
$string2="is the No 1 Web language!";
# Here are the separate strings:
print "\n\nHere is the value of \$string1\n\n";
print $string1;
print "\n\n";
print "Here is the value of \$string2\n\n";
print $string2;
print "\n\n";
# now you concatenate the separate strings:
$joinedstring=$string1 . $string2;
print "And now here is the value of \$joinedstring\n\n";
print "$joinedstring \n\n";