programming-examples/perl/Datatype/Using $$ to get the value of the reference.pl

8 lines
106 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$variable1 = 5;
$variablename = "variable1";
print "$$variablename\n";
print "$variablename\n";