programming-examples/perl/Datatype/Using ref function to get the type of the reference.pl

4 lines
69 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$variable1 = 5;
$scalarref = \$variable1;
print (ref $scalarref);