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
Explain arrays in perl.
Explain 'grep' function.
what are prefix dereferencer and list them out?
What is perl I used for?
What is epoch time in perl?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
What is the function of virtual documents in cgi programs?
For a situation in programming, how can you determine that Perl is a suitable?
What are stdin, stdout and stderr?
What is the use of -t?
What's the difference between /^Foo/s and /^Foo/?
How do I sort a hash by the hash key?
what are the two ways to get private values inside a subroutine or block?
How do you set environment variables in perl?
Explain different types of perl operators.