use strict; use warnings; # ... { no warnings 'deprecated'; %hash->{ silly } = 'foo'; }