in reply to Re: How to call sub defined in a variable?
in thread How to call sub defined in a variable?
my @ary = \( &test, &another_test, &third_test ); my $sub_i_want_to_call = $ary[rand(@ary)]; $sub_i_want_to_call->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to call sub defined in a variable?
by jh- (Scribe) on Jan 25, 2009 at 21:41 UTC | |
by Arunbear (Prior) on Jan 25, 2009 at 21:44 UTC | |
by jh- (Scribe) on Jan 25, 2009 at 21:58 UTC | |
by ysth (Canon) on Jan 25, 2009 at 23:59 UTC |