use strict; ... # all strictures on here { no strict 'refs'; # 'vars' and 'subs' strictures still on here ...; # <--- minimal code requiring "no strict 'refs'" } # all strictures on here ...