What does `$result = f() .. g()' really return?



What does `$result = f() .. g()' really return?..

Answer / Sanchit Kumar

The Perl code `$result = f() .. g();` concatenates the result of function `g()` with the result of function `f()`, and assigns the concatenated result to variable `$result`. Note that the dot (`.`) operator is used for string concatenation in Perl.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Which feature of Perl provides code reusability ? Give any example of that feature.

1 Answers  


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

9 Answers   Photon, Wipro,


What is the use of strict?

1 Answers  


How do I pass a command line argument in perl?

1 Answers  


List all the features of perl programming?

1 Answers  


What does the qx{ } operator do?

1 Answers  


What are the different instances used in cgi overhead?

1 Answers  


How to create a package?

1 Answers  


What is the difference between having a parenthesis after module name and without parenthsis after module name?? i.e Package::Module(); and Package::Module;

1 Answers  


Why aren't Perl's patterns regular expressions?

1 Answers  


What is v-strings?

1 Answers  


How do you open a file for writing?

6 Answers  


Categories