programming-examples/perl/Datatype/Using ref function to get the type of the reference.pl
2019-11-15 12:59:38 +01:00

4 lines
69 B
Perl

$variable1 = 5;
$scalarref = \$variable1;
print (ref $scalarref);