require Value; my $x = 'getValue'; if (my $coderef = Value->can($x)) { $coderef->(); }