I need to replace the date value 2016-11-02 in the date tag with a new value using a perl one liner
<header>
<name>V5 CDS Composites</name>
<version>1.1a</version>
<date>2016-11-02</date>
</header>
I can do this using xml libxml but want to do this in the shortest possible way using a perl one liner. I cannot use just 2016-11-02 as there are multiple instances of this with different tags.
I am doing this inside a shell where the tag and the value are inside a variable