How to make the following assignment, as arrayreference
assignment ?
my $arr_ref='[1,2,3,4,4,'elem']';
Answer Posted / kiruthikau
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 |
Post New Answer View All Answers
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
Comment on data types and variables in perl.
What does undef function in perl?
You want to empty an array. How would you do that?
Explain the meaning of perl one-liner?
How do you turn on the perl warnings?
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
What is the use of command “use strict”?
What is the use of -w, -t and strict in Perl?
How do you set environment variables in perl?
Explain subroutine?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
How to renaming a file in perl programming?
What is the importance of perl warnings? How do you turn them on?
What are the different instances used in cgi overhead?