How to make the following assignment, as arrayreference
assignment ?
my $arr_ref='[1,2,3,4,4,'elem']';
Answers were Sorted based on User's Feedback
Answer / kiruthikau
Refer this program.
[code]
my $ref=[1,2,3,4];
print ref $ref;
[/code]
| Is This Answer Correct ? | 0 Yes | 0 No |
my $ref=[1,2,3,4];
print ref $ref;
ref will return the type of reference.
In this case ref will return as 'ARRAY'.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do you program in Perl?
How many loop control keywords are there in perl?
What is the main function of cookie server?
What is the difference between perl array and perl hash?
Differentiate use and require?
Explain the various characteristics of perl.
Why we use CGI?
Difference between Perl and Mod_perl?
Explain about the applications of perl?
What purpose does each of the following serve: -w, strict, - T ?
Explain about typeglobs?
List the operator used in Perl?