Perl - concatenating a undefined number of strings into one string
问题 I need to concatenate an undefined number of strings with Perl to create one larger string. $concatenated_string = $string1 . $string2 . $string3 #..and so on for all strings provided in the file which was opened earlier in the program. I am just a beginner, but I could not find any question on here relating to it. Any help is much appreciated. 回答1: As I have mentioned elsewhere: When you find yourself adding an integer suffix to variable names, think " I should have used an array ". Then you