use strict; use warnings; my $x = 'getValue'; &$x(); sub getValue { return 1; }