Concatenate string : Concatenate « String « Perl






Concatenate string

   

#!/usr/bin/perl

$name="Tom";

$name .= " and";  # Concatenate string
print "$name is the girl's version of Dan.\n";

   
    
    
  








Related examples in the same category

1.Concatenate strings
2.Concatenate the separate strings
3.Concatenate two string value in print statement
4.Concatenate two strings
5.String concatenate operator
6.Read input lines and concatenate them.
7.Combine string concatenation operator and string multiplication operator