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
Explain tk?
Give an example of the -i and 0s option usage.
Mention the difference between die and exit in Perl?
What is the difference between single (') and double (") quote in a string in perl?
Which operator in perl is used for the concatenation of two strings?
How do I send e-mail from a Perl/CGI program on a Unix system?
How can you use Perl warnings and what is the importance to use them?
What are scalar data and scalar variables?
What is the main function of cookie server?
Explain subroutine?
What are different data types that perl supports. Elaborate on them.
Explain ivalue?
What does this symbol mean '->'?
Why to use perl?
What are the advantages of c over Perl?