Refer to $table{$target} rather than $table{$t}.