programming-examples/perl/Subroutine/Return value from subroutine reference.pl
2019-11-15 12:59:38 +01:00

7 lines
69 B
Perl

$codereference = sub {100};
$s = &$codereference;
print $s;