Combine string concatenation operator and string multiplication operator : Concatenate « String « Perl






Combine string concatenation operator and string multiplication operator

    

#!/usr/bin/perl -w

print "Ba" . "na" x 4 ,"\n";

   
    
    
    
  








Related examples in the same category

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