More idiomatic and a bit less syntax:
my @codesref; push @codesref, sub { print "SUB 1\n" }; push @codesref, sub { print "SUB 2\n" }; $_->() for @codesref;
In reply to Re^3: subroutine concatenation
by Anonymous Monk
in thread subroutine concatenation
by imcsk8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |