programming-examples/perl/Subroutine/Call subroutine with parameter by using its reference.pl
2019-11-15 12:59:38 +01:00

3 lines
67 B
Perl

$codereference = sub {print shift};
&$codereference("Hello!\n");