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 |
what are the steps involved in reading a cgi script on the server?
what r the future opportunities in PERL/LINUX after 3 years ??
What does the’$_’ symbol mean?
What is the purpose of _package_ literal?
What is perl programming?
What does a die() function do in perl?
Explain lists ?
What is the difference between perl list and perl array?
How to connect to SQL server through Perl?
What is the difference between single (') and double (") quote in a string in perl?
Define say() function in perl?
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?