in reply to Re^6: Replacing substrings within hash valuesin thread Replacing substrings within hash values
That's just another hash.
my %offset = (); # inserts $offset{$key} += 1; # length of insert # deletes $offset{$key} -= 1; [download]