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 |
How many loop control keywords are there in perl?
Explain strftime() function in perl?
Explain lists and ivalue?
how to install a package in perl ????
what is CPAN?
Explain the different types of data perl can handle.
How to get help for perl?
Explain '->' in perl?
What is the difference between use and require in perl?
What is the difference between single (') and double (") quote in a string in perl?
What?s your favorite module and why?
What are the various flags/arguments that can be used while executing a perl program?