How to concatenate strings with perl?



How to concatenate strings with perl?..

Answer / Udai Veer Singh

You can concatenate strings in Perl by using the `.` operator or by using the `join()` function. For example: `$str1 = 'Hello, '; $str2 = 'World!'; $concatenated_string = $str1 . $str2; # or $concatenated_string = join('', $str1, $str2);`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How can you replace the characters from a string and save the number of replacements?

1 Answers  


What is the difference between for & foreach, exec & system?

9 Answers   Photon, Wipro,


What exactly is grooving and shortening of the array?

1 Answers  


Differentiate between c++ and perl.

1 Answers  


What are the advantages of c over Perl?

1 Answers  


Explain about typeglobs?

1 Answers  


How can the user execute a long command repeatedly without typing it again and again?

1 Answers  


Enlist the advantages of using c over perl?

1 Answers  


What is v-strings?

1 Answers  


What value is returned by a lone `return;’ statement?

1 Answers  


what are the three groups involved in information sharing?

1 Answers  


What are the logical operators used for small scale operations? Explain them briefly.

1 Answers  


Categories