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

8 lines
106 B
Perl

$variable1 = 5;
$variablename = "variable1";
print "$$variablename\n";
print "$variablename\n";