How to make the following assignment, as arrayreference
assignment ?
my $arr_ref='[1,2,3,4,4,'elem']';
Answer Posted / kiruthikau
Refer this program.
[code]
my $ref=[1,2,3,4];
print ref $ref;
[/code]
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is perl language?
what is CPAN?
Explain about the applications of perl?
What does the qx{ } operator do?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
How interpreter is used in perl?
What can be done for efficient parameter passing in perl?
Why do we use "use strict" in perl?
What is a perl references?
Explain grooving and shortening of arrays and splicing of arrays?
What is lexical variable in perl?
Comment on the scope of variables in perl.
You want to print the contents of an entire array. How would you do that?
How can you replace the characters from a string and save the number of replacements?
Write a script to reverse a string without using perl's built in functions?