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 |
Which feature of Perl provides code reusability ? Give any example of that feature.
What is the difference between for & foreach, exec & system?
What is the use of strict?
How do I pass a command line argument in perl?
List all the features of perl programming?
What does the qx{ } operator do?
What are the different instances used in cgi overhead?
How to create a package?
What is the difference between having a parenthesis after module name and without parenthsis after module name?? i.e Package::Module(); and Package::Module;
Why aren't Perl's patterns regular expressions?
What is v-strings?
How do you open a file for writing?