$name = param('name'); $hash{name} = 'this and that' if $name eq '';