programming-examples/perl/Subroutine/Call a subroutine through its reference.pl
2019-11-15 12:59:38 +01:00

6 lines
95 B
Perl

sub subroutine
{
print "Hello!\n";
}
$codereference = \&subroutine;
&$codereference;