# trying to create a $dynamic_var use strict; my $var_name = 'dynamic_var'; my $$var_name = 'foo'; # doesn't compile my ${$var_name} = 'foo'; # nor does this eval "my \$$var_name = 'foo';"; # this runs fine, now $dynamic_var # exists in some scope print $dynamic_var, "\n"; # but this doesn't work in strict