if(ref_type(($ref_type eq 'HASH')? $ref->{$key}: $ref->[$key])) { return "Can't replace Reference by Value in ".join('_',@path)." ($key)"; }