Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; my $calls = { A => \&print_A(), B => \&print_B(), }; my $test = 'A'; $calls->{$test}; sub print_A { print "\nA\n"; } sub print_B { print "\nB\n"; }
|
|---|