RosettaCodeData/Task/Higher-order-functions/Perl/higher-order-functions-3.pl
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

7 lines
93 B
Perl

sub first {shift->()}
sub second {'second'}
print first \&second;
print first sub{'sub'};