programming-examples/perl/Subroutine/Using arrow operator to call a subroutine by its reference.pl

3 lines
68 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$codereference = sub {print shift};
$codereference->("Hello!\n");