programming-examples/perl/Subroutine/Return value from subroutine reference.pl

7 lines
69 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$codereference = sub {100};
$s = &$codereference;
print $s;