Thursday, 5 January 2023

what is the use of ref() in perl?


Perl provides the ref() function so that you can check the reference type before dereferencing a reference.

1.SCALAR
2.ARRAY,
3.HASH,
4.CODE,
5.REF,
6.GLOB,
7.LVALUE,
8.FORMAT,
9.IO,
10.VSTRING,
 
these are the return values of ref() reference function.

Labels: , , , , , , ,

0 Comments:

Post a Comment

Note: only a member of this blog may post a comment.

<< Home