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 |
What is the use of strict?
What is the use of command “use strict”?
How to dereference a reference?
Explain the execution of a program in perl.
Can inheritance be used in perl? Explain with the help of an example.
Explain the meaning of subroutine?
Explain what is perl language?
Who created perl?
what r the future opportunities in PERL/LINUX after 3 years ??
Explain regular expression in perl?
How do I do fill_in_the_blank for each file in a directory?
What are the benefits of perl in using it as a web-based application?