Appending in a file

Hi,

I have file named Ex.txt which has the contents like this-

<FndManagers>
Mng={{PID|8819|LB}|75.000000|75.000000}
Mng={{PID|25069|ML}|25.000000|0.000000}
Mng={{PID|6034033|ML}|0.000000|25.000000}
</FndManagers>

I have a code which searches for the number 8819 and appends with the number 20.00.

perl -pe 's/(\|8819\}.*)\}$/$1|20.0}/' Ex.txt

Now I need to append 0 for the other lines in a similar way and th efile should look
like this-

<FndManagers>
Mng={{PID|8819|LB}|75.000000|75.000000|20.0}
Mng={{PID|25069|ML}|25.000000|0.000000|0}
Mng={{PID|6034033|ML}|0.000000|25.000000|0}
</FndManagers>

With awk:

awk 'BEGIN{FS=OFS="|"}
$2=="8819"{sub("}","|20.0}",$NF);print;next}
{sub("}","|0}",$NF)}
{print}' file

Regards