How to make the following assignment, as arrayreference
assignment ?
my $arr_ref='[1,2,3,4,4,'elem']';
Answer Posted / kiruthikau
Refer this program.
[code]
my $ref=[1,2,3,4];
print ref $ref;
[/code]
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How the interpreter is used in Perl?
What is the purpose of _package_ literal?
Demonstrate subroutines in perl with a simple example.
How to prevent file truncation in perl?
What does undef function in perl?
How can the user execute a long command repeatedly without typing it again and again?
what is Chop & Chomp function does?
Explain chop?
Why does Perl not have overloaded functions?
What are perl variables?
What are the arguments and what do they mean in perl programming?
When do you use perl programming?
What happens in dereferencing?
Explain the meaning of subroutine?
Differentiate between c++ and perl.