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 |
Write a program that explains the symbolic table clearly.
How to do comment in perl?
How and what are closures implemented in perl?
Explain the use of 'my' keyword in perl?
For a situation in programming, how can you determine that Perl is a suitable?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Differentiate between c++ and perl.
What does read () command do?
How will you create a file in perl?
How does a “grep” function perform?
What is the difference between localtime() and gmtime() functions?
What does undef function in perl?