I don't see where you're assigning $v to $hash{$t} there.
In reply to Re^2: Using substr on Hash Keys by mr_mischief in thread Using substr on Hash Keys by pc0019