Answers

Question and Answer:

  Home  CGI Perl

⟩ How to make the following assignment, as arrayreference assignment?my $arr_ref=[1,2,3,4,4,elem];

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

print ref $ref;

ref will return the type of reference.

In this case ref will return as 'ARRAY'.

 233 views

More Questions for you: