my @ary = \( &test, &another_test, &third_test ); my $sub_i_want_to_call = $ary[rand(@ary)]; $sub_i_want_to_call->();
In reply to Re^2: How to call sub defined in a variable?
by Arunbear
in thread How to call sub defined in a variable?
by jh-
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |