You could also use a bare block, so you don't have to remember to turn strict refs back on:
use strict; ... { no strict 'refs'; $x = 'getValue'; &$x(); } # now we're back to strict refs
But, personally, I would rather use can, as I explained in Re^4: requiring pm modules.
In reply to Re^4: requiring pm modules
by revdiablo
in thread requiring pm modules
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |