in reply to strict refs usage
for my $test ( qw( test1 test2 )) { next unless my $test_sub = main->can( $test ); print "Dear user, test $test is currently running.\n"; $test_sub->(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strict refs usage
by QM (Parson) on Sep 22, 2005 at 18:20 UTC | |
by chromatic (Archbishop) on Sep 22, 2005 at 18:48 UTC |