udat before:
a1
ok (num=1)

^ \$mdat\{cnt\} = -\d-
$udat{cnt} = --
udat after:
ok (num=1)

2 udat after write:
b2
ok (num=1)