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
How do you find the length of an array?
Explain chomp?
How does polymorphism work in perl?
When does circular reference occur?
How to implement a stack in Perl?
Why do we use "use strict" in perl?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
Why to use perl?
How do I do fill_in_the_blank for each file in a directory?
What is use of ‘->’ symbol?
Is perl compiler or interpreter?
For a situation in programming, how can you determine that Perl is a suitable?
What can be done for efficient parameter passing in perl? Explain.
What are the advantages of c over Perl?
Explain splicing of arrays?