in reply to Re: call sub in string
in thread call sub in string
The easier way to accomplish his goal without using symbolic refs and without using a disptach table is to simply loop over a list of subrefs.
Of course Im somewhat curious why any good programmer would handroll numbered functions (i can see it with autogenerated subs, kinda), but I suspect our OP is a bit new to 'tings.foreach my $sub (\&function_1,\&function_2) { $sub->(); }
:-)
Yves / DeMerphq
--
When to use Prototypes?
|
|---|