Programming Languages C Subjective
Mar 15, 2013

How to make the following assignment, as arrayreference assignment?

my $arr_ref=[1,2,3,4,4,elem];

Detailed Explanation

my $ref=[1,2,3,4];
print ref $ref;

ref will return the type of reference.
In this case ref will return as 'ARRAY'.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback