in reply to Re: subroutine concatenation
in thread subroutine concatenation
and it worked just fineuse strict; my @codesref = undef; $codesref[0] = sub {print "SUB 1\n";}; $codesref[1] = sub {print "SUB 2\n";}; foreach my $code (@codesref){ $code->(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: subroutine concatenation
by Anonymous Monk on Feb 09, 2005 at 21:51 UTC |