use strict; ... { no strict 'refs'; $x = 'getValue'; &$x(); } # now we're back to strict refs